all repos — openbox @ 9bac22eb402a477b802416287b9e76bf908408ed

openbox fork - make it a bit more like ryudo

indenting, focus fallback to None not PointerRoot
Dana Jansens danakj@orodu.net
commit

9bac22eb402a477b802416287b9e76bf908408ed

parent

474a40754b68fe159d5e3063319a20396b2912c7

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M openbox/focus.copenbox/focus.c

@@ -75,8 +75,7 @@ g_list_free(focus_order[i]);

g_free(focus_order); /* reset focus to root */ - XSetInputFocus(ob_display, PointerRoot, RevertToPointerRoot, - event_lasttime); + XSetInputFocus(ob_display, PointerRoot, RevertToNone, event_lasttime); } }

@@ -104,8 +103,11 @@ screen_install_colormap(focus_client, FALSE);

screen_install_colormap(client, TRUE); if (client == NULL) { - /* when nothing will be focused, send focus to the backup target */ - XSetInputFocus(ob_display, screen_support_win, RevertToPointerRoot, +#ifdef DEBUG_FOCUS + 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); XSync(ob_display, FALSE); }