allow focus to be moved off top level managed windows, as long as its not None or the root.
This commit is contained in:
parent
d2d10fb6c9
commit
568744d572
1 changed files with 9 additions and 2 deletions
|
@ -355,8 +355,15 @@ static void event_done(gpointer data)
|
|||
focus_hilite = focus_in;
|
||||
|
||||
if (focus_client != last) {
|
||||
if (!focus_client)
|
||||
focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
|
||||
if (!focus_client) {
|
||||
Window w;
|
||||
int r;
|
||||
|
||||
/* is focus anywhere valid? */
|
||||
XGetInputFocus(ob_display, &w, &r);
|
||||
if (!w || w == RootWindow(ob_display, ob_screen))
|
||||
focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
|
||||
}
|
||||
last = focus_client;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue