diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-08-08 13:10:00 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-08-08 13:10:00 +0930 |
commit | c02128532e910e813fba94983733942d30c2d5cb (patch) | |
tree | aaa3cb5019cf48ac46c4f41fb57333fa49943989 /include/dixgrabs.h | |
parent | b8abeaf74ee8296d4bc3164a5a253624f984a6d4 (diff) |
dix: Allow flexible devices for passive core grabs.
A passive core grab doesn't specify the device, and is thus created with the
ClientPointer as device. When this grab is activated later, don't actually
activate the grab on the grab device, but rather change the device to the one
that caused the grab to activate. Same procedure for keyboards.
Makes core apps _A LOT_ more useable and reduces the need to set the
ClientPointer.
Only applies to core grabs!
Diffstat (limited to 'include/dixgrabs.h')
-rw-r--r-- | include/dixgrabs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dixgrabs.h b/include/dixgrabs.h index 2d66d6ba1..b237ab3ad 100644 --- a/include/dixgrabs.h +++ b/include/dixgrabs.h @@ -47,7 +47,8 @@ extern int DeletePassiveGrab( extern Bool GrabMatchesSecond( GrabPtr /* pFirstGrab */, - GrabPtr /* pSecondGrab */); + GrabPtr /* pSecondGrab */, + Bool /*ignoreDevice*/); extern int AddPassiveGrabToList( GrabPtr /* pGrab */); |