1
0
Fork 0

Platform/Unix/X11Display.cpp: Set and unset focused_display variable when the display receives FocusIn/Out events.

This commit is contained in:
Henrik Hautakoski 2020-12-20 16:03:05 +01:00
parent d9f54b08ca
commit 227d58725d

View file

@ -275,9 +275,11 @@ void X11Display::processEvent(const ::XEvent& event)
break; break;
case FocusIn: case FocusIn:
Log::debug("X11: FocusIn"); Log::debug("X11: FocusIn");
_priv::focused_display = this;
break; break;
case FocusOut: case FocusOut:
Log::debug("X11: FocusOut"); Log::debug("X11: FocusOut");
_priv::focused_display = NULL;
break; break;
} }
} }