How to send XI2 events from a client to the other client(s) ?

Daniel Stone daniel at fooishbar.org
Thu Aug 26 17:17:22 PDT 2010


Hi,

On Thu, Aug 26, 2010 at 09:02:40PM +0900, Park Sung-Jin wrote:
> My Xorg server and applications are running on mobile environment.

Yeah, I figured. :)

> Most of application windows are full screen and some application can get
> some keys
> even if they are not on the top of window stack.
> 
> In the past, I used XGrabKey to get some keys in an application which was on
> the bottom of window stack.
> Keys were delivered properly but everytime they delivered, focus window
> changed also.
> So the application which contains focused window received focus-out and
> focus-in events
> when every key delivered to other application window.
> 
> So I chose that one special application grab all key events and delivered
> the events to the proper window via XSendEvent().

Er, are the focus events a problem? Note that the detail is always
NotifyGrab, so you can distinguish them from actual explicit focus
change events, and ignore them if you like.  Nowhere near as problematic
as what you're doing now, and much lower latency too.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100827/385d2e7e/attachment.pgp>


More information about the xorg-devel mailing list