mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 11:28:03 +02: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)
|
if (!numFoci)
|
||||||
sendevent = TRUE;
|
sendevent = TRUE;
|
||||||
|
else if (mode == NotifyUngrab && FOCUS_SEMAPHORE_ISSET(pWin, dev))
|
||||||
|
sendevent = TRUE;
|
||||||
|
|
||||||
if (sendevent)
|
if (sendevent)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue