dix: don't try to activate a passive grab on top of an active one.

If we already have an active grab on the device, don't attempt to activate
another one.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-06-01 16:06:52 +10:00
parent ff1d6244eb
commit 18ae486708

View File

@ -3393,6 +3393,9 @@ CheckPassiveGrabsOnWindow(
#define XI2_MATCH 0x4
int match = 0;
if (device->deviceGrab.grab)
return FALSE;
if (!grab)
return FALSE;
/* Fill out the grab details, but leave the type for later before