RFC: sorting out grabs

Peter Hutterer mailinglists at who-t.net
Mon May 14 18:11:30 PDT 2007


Peter Hutterer wrote:
> At the moment, the grab behaviour is the following:
> When a client C has a grab on pointer X or keyboard Y:
>    X/Y _only_ send to C.
>    any other device Z can send to all clients but C.
>    Z will not send events to C, except
>    if Z is a pointer and the event.window == grabWindow, Z sends to C.
> (The last made popup menu less painful if you don't have a MPX aware WM)

Just for the archive, I had to take the last line out. Sending to the 
grabWindow from a non-grabbed device can lead to race conditions where 
the grab doesn't get released.
So we're down to

	X/Y only send to C
	any other device can send to any client but C

Cheers,
   Peter



More information about the xorg mailing list