<div>Hi...</div>
<div>My Xorg server and applications are running on mobile environment.</div>
<div>Most of application windows are full screen and some application can get some keys</div>
<div>even if they are not on the top of window stack.</div>
<div> </div>
<div>In the past, I used XGrabKey to get some keys in an application which was on the bottom of window stack.</div>
<div>Keys were delivered properly but everytime they delivered, focus window changed also.</div>
<div>So the application which contains focused window received focus-out and focus-in events</div>
<div>when every key delivered to other application window.</div>
<div> </div>
<div>So I chose that one special application grab all key events and delivered the events to the proper window via XSendEvent().<br></div>
<div class="gmail_quote">2010/8/26 Daniel Stone <span dir="ltr"><<a href="mailto:daniel@fooishbar.org">daniel@fooishbar.org</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br>
<div>
<div></div>
<div class="h5"><br>On Thu, Aug 26, 2010 at 07:11:04PM +0900, Park Sung-Jin wrote:<br>> I'd like to know how to send XI2 events (such as XI_KeyPress, XI_KeyRelease)<br>> from a client to the other client(s).<br>
><br>> I'm working on 1.8.0 version of Xorg server and have a special application.<br>> The special application (which grabs all slave key devices except<br>> XTestKeyboard) receives every key event and delivers it to the proper<br>
> client's window.<br>><br>> Most of the other applications are ready to receive KeyPress/KeyRelease<br>> event(s).<br>> So XSendEvent() was used for deliverying the key event in the first time...<br>> but some applications only can receive XI2 events (such as<br>
> XI_KeyPress/XI_KeyRelease) and they want to get the key events<br>> when they're not on the top of window stack (eg. background application).<br>><br>> I tried to send XI2 key events using XSendExtension() but I realized the<br>
> function was not proper for sending XI2 (Generic) events.<br>><br>> I really appreciate your helps in advance.<br>> Thanks :)<br><br></div></div>Why not just implement a proper focus policy from your WM?<br>
<br>Cheers,<br><font color="#888888">Daniel<br></font><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.10 (GNU/Linux)<br><br>iEYEARECAAYFAkx2VBIACgkQUVYB1rKAgJSOcgCglgoQ1tIVgw6EUpV7H6gOUCC4<br>xtEAn1EIF+rOaRqeh+KAt2aB3Fs18IZp<br>
=bjS/<br>-----END PGP SIGNATURE-----<br><br></blockquote></div><br>