summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-04 20:53:33 +0000
committerDana Jansens <danakj@orodu.net>2007-06-04 20:53:33 +0000
commit8772b46b56172e35506f21d626aa89bd649615c6 (patch)
tree30545093e0ac201ad2ebb915a00e90bbb889dd57 /openbox/screen.c
parent9a7c4de2eb73826da9b4415541735f8d7c161c23 (diff)
allow focus to fallback to omnipresent windows, except during desktop switching which is when they are vile
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c4
1 files changed, 2 insertions, 2 deletions
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.. */