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:
Peter Hutterer 2008-04-22 21:54:02 +09:30
parent 8190ef8754
commit c3659cb414

View File

@ -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)
{