indenting, focus fallback to None not PointerRoot
This commit is contained in:
parent
474a40754b
commit
9bac22eb40
1 changed files with 6 additions and 4 deletions
|
@ -75,8 +75,7 @@ void focus_shutdown(gboolean reconfig)
|
||||||
g_free(focus_order);
|
g_free(focus_order);
|
||||||
|
|
||||||
/* reset focus to root */
|
/* reset focus to root */
|
||||||
XSetInputFocus(ob_display, PointerRoot, RevertToPointerRoot,
|
XSetInputFocus(ob_display, PointerRoot, RevertToNone, event_lasttime);
|
||||||
event_lasttime);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +103,11 @@ void focus_set_client(ObClient *client)
|
||||||
screen_install_colormap(client, TRUE);
|
screen_install_colormap(client, TRUE);
|
||||||
|
|
||||||
if (client == NULL) {
|
if (client == NULL) {
|
||||||
/* when nothing will be focused, send focus to the backup target */
|
#ifdef DEBUG_FOCUS
|
||||||
XSetInputFocus(ob_display, screen_support_win, RevertToPointerRoot,
|
ob_debug("actively focusing NONWINDOW\n");
|
||||||
|
#endif
|
||||||
|
/* when nothing will be focused, send focus to the backup target */
|
||||||
|
XSetInputFocus(ob_display, screen_support_win, RevertToNone,
|
||||||
event_lasttime);
|
event_lasttime);
|
||||||
XSync(ob_display, FALSE);
|
XSync(ob_display, FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue