mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 23:50:08 +01: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:
parent
8190ef8754
commit
c3659cb414
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue