diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-17 17:32:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-17 17:32:09 +0000 |
| commit | 322b2d0a05daf0c0c9de07baf5e27e4945f7bfd5 (patch) | |
| tree | eceac0470d7d95fa676b49576341abbbad1b87c5 | |
| parent | 0a3d3245a6a72c4af72b57b71d97190fb814adb3 (diff) | |
distribute focus when entering/leaving show-the-desktop mode
| -rw-r--r-- | openbox/screen.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 118798e8..72363cdc 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -424,6 +424,16 @@ void screen_show_desktop(gboolean show) } } + if (show) { + /* focus desktop */ + for (it = focus_order[screen_desktop]; it; it = it->next) + if (((Client*)it->data)->type == Type_Desktop && + client_focus(it->data)) + break; + } else { + focus_fallback(Fallback_NoFocus); + } + show = !!show; /* make it boolean */ PROP_SET32(ob_root, net_showing_desktop, cardinal, show); |
