summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-05 02:48:39 +0000
committerDana Jansens <danakj@orodu.net>2007-05-05 02:48:39 +0000
commitfde5ca09e9ea7ab08b6dc06723f19bad6d03af22 (patch)
tree58e8a107b0a60d7fb87a05afe8f72a451194afdf /openbox/screen.c
parent9389c7e6c80edc216173981a69eda525d6111547 (diff)
when restoring from show-desktop mode because a window is going to be focused, then don't restore focus how it was before showing the desktop.
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 a302828b..8fdbe096 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -860,7 +860,7 @@ void screen_update_desktop_names()
}
}
-void screen_show_desktop(gboolean show)
+void screen_show_desktop(gboolean show, gboolean restore_focus)
{
GList *it;
@@ -895,7 +895,7 @@ void screen_show_desktop(gboolean show)
client_focus(it->data))
break;
}
- } else {
+ } else if (restore_focus) {
ObClient *c;
/* use NULL for the "old" argument because the desktop was focused