automatic/passive grab vs XGrabPointer/XUngrabPointer q

automatic/passive grab vs XGrabPointer/XUngrabPointer q

Erez D erez0001 at gmail.com
Thu Jul 8 16:31:09 IDT 2010


hi

X automatically does pointer grab when the mouse drags (i.e. press and hold
the mouse button while moving it).
It is possible to override the auto grab settings (i.e owner_events, etc)
with a passive grab (e.g. XGrabButton)

what if:

1. the user presses mouse button 1 (and holds it down)
2. the use moves the mouse
3. the application calles XUngrabPointer -> will it ungrab ?
or..
3. the application calles XGrabPointer  (withough XUngrabPointer first) ->
will it regrab ?

thanks,
erez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100708/c47ced90/attachment.html>


More information about the Linux-il mailing list