Whenever we perform XGrabKeyboard or XGrabPointer
we can specify it using GrabModeAsync or GrabModeSync
I did not not understand what the man pages were trying to say .
Can you please explain it in a better way
This comes out off XLIB programming manual volume one.
p316. isbn 1-56592-002-3
Without a doubt the best book when it comes to
X-programming.
----------------------------------------------------------
If the value GrabModeAsync is used,then event processing for the grabbed device is asynchronous,as usual. That is, the Server processes and sends all grabbed events to the grabbing client as soon as they occur. Note that all ungrabbed events (e.g. Expose) are processed and sent normally.
If GrabModeAsync is used then,when the grab occurs,the Server records raw device events in an internal queue,but temporarily stops processing and sending them to the grabbing client. The Server resumes raw event processing when the grabbing client sends either an XAllowEvents() request or an ungrab request.
Using GrabModeSync is often referred to as freezing the keyboard or pointer. This term is the source of some confusion since GrabModeSync does not freeze (lockup) the pointer or keyboard themselves in any intuitive sense. One would guess that if the pointer or keyboard were "frozen", then using them would have no effect. In fact,use of the pointer and keyboard during a freeze continues to generate raw events which are recorded (but not processed or send) by the Server....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.