[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    How to send XI2 events from a client to the other client(s) ?
From:       Park Sung-Jin <input.hacker () gmail ! com>
Date:       2010-08-26 9:54:43
Message-ID: AANLkTikivsC_Szt4t87L9HBBQGSO3mxre99am3ZwpCyQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
I'd like to know how to send XI2 events (such as XI_KeyPress, XI_KeyRelease)
from a client to the other client(s).

I'm working on 1.8.0 version of Xorg server and have a special application.
The special application (which grabs all slave key devices except
XTestKeyboard) receives every key event and delivers it to the proper
client's window.

Most of the other applications are ready to receive KeyPress/KeyRelease
event(s).
So XSendEvent() was used for deliverying the key event in the first time...
but some applications only can receive XI2 events (such as
XI_KeyPress/XI_KeyRelease) and they want to get the key events
when they're not on the top of window stack (eg. background application).

I tried to send XI2 key events using XSendExtension()  but I realized the
function was not proper for sending XI2 (Generic) events.

I really appreciate your helps in advance.
Thanks :)

- Sung-Jin Park

[Attachment #5 (text/html)]

<div>Hello,</div>
<div>I&#39;d like to know how to send XI2 events (such as XI_KeyPress, XI_K=
eyRelease) from a client to the other client(s).</div>
<div>=A0</div>
<div>I&#39;m working on 1.8.0 version of Xorg server and have a special app=
lication.</div>
<div>The=A0special application (which grabs all slave key devices except XT=
estKeyboard) receives every key event and delivers it to the proper client&=
#39;s window.</div>
<div>=A0</div>
<div>Most of the other applications are ready to receive KeyPress/KeyReleas=
e event(s).</div>
<div>So XSendEvent() was used for deliverying the key event in the first ti=
me...</div>
<div>but some applications only can receive XI2 events (such as XI_KeyPress=
/XI_KeyRelease) and they want to get the key events</div>
<div>when they&#39;re not on the top of window stack (eg. background applic=
ation).</div>
<div>=A0</div>
<div>I tried to send XI2 key events using XSendExtension()=A0 but I realize=
d the function was not proper for sending XI2 (Generic) events.</div>
<div>=A0</div>
<div>I really appreciate your helps in advance.</div>
<div>Thanks :)</div>
<div>=A0</div>
<div>- Sung-Jin Park</div>
<div>=A0</div>


_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic