From 8772b46b56172e35506f21d626aa89bd649615c6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 4 Jun 2007 20:53:33 +0000 Subject: allow focus to fallback to omnipresent windows, except during desktop switching which is when they are vile --- openbox/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/screen.c') diff --git a/openbox/screen.c b/openbox/screen.c index 5f1991d3..9cfc1850 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -587,7 +587,7 @@ void screen_set_desktop(guint num, gboolean dofocus) do this before hiding the windows so if helper windows are coming with us, they don't get hidden */ - if (dofocus && (c = focus_fallback(TRUE, !config_focus_last))) + if (dofocus && (c = focus_fallback(TRUE, !config_focus_last, FALSE))) { /* only do the flicker reducing stuff ahead of time if we are going to call xsetinputfocus on the window ourselves. otherwise there is @@ -1050,7 +1050,7 @@ void screen_show_desktop(gboolean show, ObClient *show_only) else if (!show_only) { ObClient *c; - if ((c = focus_fallback(TRUE, FALSE))) { + if ((c = focus_fallback(TRUE, FALSE, TRUE))) { /* only do the flicker reducing stuff ahead of time if we are going to call xsetinputfocus on the window ourselves. otherwise there is no guarantee the window will actually take focus.. */ -- cgit v1.2.3