mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 19:04:50 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user