X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=8fdbe096f6b577c6035d116b27411a24622e6ab5;hb=fde5ca09e9ea7ab08b6dc06723f19bad6d03af22;hp=a302828baf1a7a293d87dc995e6efce2cbb687a5;hpb=9389c7e6c80edc216173981a69eda525d6111547;p=chaz%2Fopenbox 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