g_free(focus_order);
/* reset focus to root */
- XSetInputFocus(ob_display, PointerRoot, RevertToPointerRoot,
- event_lasttime);
+ XSetInputFocus(ob_display, PointerRoot, RevertToNone, event_lasttime);
}
}
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);
}
if (old->transient_for) {
gboolean trans = FALSE;
- if (config_focus_last || !config_focus_follow)
+ if (!config_focus_follow)
trans = TRUE;
else {
ObClient *c;
trans = TRUE;
}
- g_message("trans %d", trans);
-
/* try for transient relations */
if (trans) {
if (old->transient_for == OB_TRAN_GROUP) {
}
}
- if (!config_focus_last && config_focus_follow)
+ if (config_focus_follow)
if (focus_under_pointer())
return;