diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-22 21:54:02 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-23 14:22:21 +0930 |
commit | c3659cb414ef05da8fa09009b2b82a3deeeb4f3a (patch) | |
tree | 5afaca029a6988fd49048a3abdbfd5326ac1bd1d /dix/events.c | |
parent | 8190ef87547b704848231bde10b1cdffc6442790 (diff) |
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.
Diffstat (limited to 'dix/events.c')
-rw-r--r-- | dix/events.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |