[PATCH] Don't release passive grabs unless all buttons are up
thjaeger at gmail.com
Sun Dec 21 13:14:53 PST 2008
This turned out to be a little bit trickier than I initially thought,
since buttonsDown counts the number of physical buttons that are down,
before they are mapped to logical buttons.
The thing I'm unsure about (as should be evident from the patch), is
where to stick the declaration for the new function AllButtonsAreUp.
Thomas Jaeger wrote:
> I can't see any reason why we would treat buttons > 5 differently. This
> patch simplifies client code by eliminating the need to call XGrabDevice
> after a button has been pressed and prevents race conditions that could
> result from that.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2465 bytes
Desc: not available
More information about the xorg