mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 13:07:54 +00:00
[client] x11: filter out grab/ungrab focus/leave events
This commit is contained in:
parent
8e604667f9
commit
555891face
1 changed files with 6 additions and 0 deletions
|
@ -259,11 +259,17 @@ static bool x11EventFilter(SDL_Event * event)
|
|||
}
|
||||
|
||||
case FocusIn:
|
||||
if (xe.xfocus.mode != NotifyNormal)
|
||||
return true;
|
||||
|
||||
x11.focused = true;
|
||||
app_handleFocusEvent(true);
|
||||
return true;
|
||||
|
||||
case FocusOut:
|
||||
if (xe.xfocus.mode != NotifyNormal)
|
||||
return true;
|
||||
|
||||
x11.focused = false;
|
||||
app_handleFocusEvent(false);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue