Platform/Unix/X11Display.cpp: Set and unset focused_display variable when the display receives FocusIn/Out events.
This commit is contained in:
parent
d9f54b08ca
commit
227d58725d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue