From c3659cb414ef05da8fa09009b2b82a3deeeb4f3a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 22 Apr 2008 21:54:02 +0930 Subject: [PATCH] dix: always send FocusIn events if mode is NotifyUngrab. In the case of a NotifyUngrab, the flag for the device may already be set but we still need to send the FocusIn event. --- dix/events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dix/events.c b/dix/events.c index 7b503ac4e..04342fc0f 100644 --- a/dix/events.c +++ b/dix/events.c @@ -4690,6 +4690,8 @@ FocusEvent(DeviceIntPtr dev, int type, int mode, int detail, WindowPtr pWin) if (!numFoci) sendevent = TRUE; + else if (mode == NotifyUngrab && FOCUS_SEMAPHORE_ISSET(pWin, dev)) + sendevent = TRUE; if (sendevent) {