summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-04-13 16:49:25 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-13 16:59:53 +0930
commit755f9e5d7898056cf3bead69ce25a10e23995582 (patch)
treec026d77586707518acacf3670c19dff4c025f99d
parent6faf5b97b92953c331d6540ceb18fd0a77197fea (diff)
dix: Ignore focus for passive grabs if the event is a pointer event.
-rw-r--r--dix/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c
index 1b62db05f..e25ec30cf 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -3546,7 +3546,7 @@ CheckDeviceGrabs(DeviceIntPtr device, xEvent *xE,
{
int i;
WindowPtr pWin = NULL;
- FocusClassPtr focus = device->focus;
+ FocusClassPtr focus = IsPointerEvent(xE) ? NULL : device->focus;
xEvent core;
BOOL sendCore = (device->isMaster && device->coreEvents);