diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-05 02:48:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-05 02:48:39 +0000 |
| commit | fde5ca09e9ea7ab08b6dc06723f19bad6d03af22 (patch) | |
| tree | 58e8a107b0a60d7fb87a05afe8f72a451194afdf /openbox/screen.c | |
| parent | 9389c7e6c80edc216173981a69eda525d6111547 (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.c | 4 |
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 |
