mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-09-01 12:25:09 +00:00
[client] x11: filter out grab/ungrab focus/leave events
This commit is contained in:
@@ -259,11 +259,17 @@ static bool x11EventFilter(SDL_Event * event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case FocusIn:
|
case FocusIn:
|
||||||
|
if (xe.xfocus.mode != NotifyNormal)
|
||||||
|
return true;
|
||||||
|
|
||||||
x11.focused = true;
|
x11.focused = true;
|
||||||
app_handleFocusEvent(true);
|
app_handleFocusEvent(true);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case FocusOut:
|
case FocusOut:
|
||||||
|
if (xe.xfocus.mode != NotifyNormal)
|
||||||
|
return true;
|
||||||
|
|
||||||
x11.focused = false;
|
x11.focused = false;
|
||||||
app_handleFocusEvent(false);
|
app_handleFocusEvent(false);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user