mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-08 21:33:57 +00:00
[client] x11: fix failure to process the correct focus events
This commit is contained in:
parent
f883c630f6
commit
5789a7efc0
1 changed files with 4 additions and 1 deletions
|
@ -335,7 +335,7 @@ static bool x11EventFilter(SDL_Event * event)
|
|||
return true;
|
||||
|
||||
XIFocusOutEvent *xie = cookie->data;
|
||||
if (xie->mode != NotifyNormal)
|
||||
if (xie->mode != NotifyNormal && xie->mode != XINotifyWhileGrabbed)
|
||||
return true;
|
||||
|
||||
app_updateCursorPos(xie->event_x, xie->event_y);
|
||||
|
@ -350,6 +350,9 @@ static bool x11EventFilter(SDL_Event * event)
|
|||
return true;
|
||||
|
||||
XIFocusOutEvent *xie = cookie->data;
|
||||
if (xie->mode != NotifyNormal && xie->mode != XINotifyWhileGrabbed)
|
||||
return true;
|
||||
|
||||
app_updateCursorPos(xie->event_x, xie->event_y);
|
||||
app_handleFocusEvent(false);
|
||||
x11.focused = false;
|
||||
|
|
Loading…
Reference in a new issue