On Mon, Aug 30, 2010 at 05:33:51PM +0900, Park Sung-Jin wrote: > Hi, > Thank you for your answer. :) > > As you said, distinguishing between NotifyGrab and NotifyNormal of > FocusIn/FocusOut event can be a good choice. > But I have several applications which use their different toolkits > concurrently such as GTK, Xt and others. > > So I need a way to send key event to specific window(s) under specific > delivery policy with toolkit independant way. > That's why I didn't use XGrabKey and other grab functions. > > As I already said, there is no function to send XI2 events from one to the > other. > Peter, do you have any plan to add/implement this functionality in the near > future ?
the original plans were to extend XTEST to support XI2 as well, along with a couple of other extensions that need this work done too. I can't give you an ETA for that though, sorry. Cheers, Peter > Sung-Jin Park > 2010/8/27 Daniel Stone <[email protected]> > > > 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 > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.10 (GNU/Linux) > > > > iEYEARECAAYFAkx3BBIACgkQUVYB1rKAgJRtpQCgg/EVl+JNf7YyWWdphi2bkcHv > > QzYAnieIBTd2d9ms9xlQyBe+N0olP4uY > > =K/jW > > -----END PGP SIGNATURE----- > > > > _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
