|

楼主 |
发表于 2004-1-17 02:30:03
|
显示全部楼层
XEV uses XSelectInput to get events from a given resource. I uses X Record Extension to do that.
Grab can get the events which are sent to a window. However, the problem is that I also simulate events to that window at the same time. That means I cannot grab the keyboard or mouse events to my application since that window needs to process keyboard or mouse events.
mouse keyboard device
-------------------------------
X Server
-------------------------------
app | my client
In the figure, I want to simulate events to app. I can send events using X Test extension to app. But I don't want user input anything at that time. So, I think one way is disable the keyboard and mouse device. Another way is the keyboard and mouse events redirect to my client. However, in the second way, the events I simulated are also redirect to my client.
Thank you. I am very glad to discuss this topic with you.
--------------------
I cannot figure out how to input Chinese in English UI on Gentoo. |
|