diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 17:23:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 17:23:00 +0000 |
| commit | a822cbe13b18eca60b220b9b312210c02b946a3b (patch) | |
| tree | b7fb482d86914ef1ff29f85af8054da4692d314a | |
| parent | c5e902a7b12408cfde03d80999ab76c01e823f00 (diff) | |
dont focus anything in the kernel from showing-the-desktop mode
| -rw-r--r-- | openbox/screen.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 01cca653..e9d0ce1a 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -377,24 +377,16 @@ void screen_update_desktop_names() void screen_show_desktop(gboolean show) { GList *it; - static Window saved_focus = 0; if (show == screen_showing_desktop) return; /* no change */ - /* save the window focus, and restore it when leaving the show-desktop - mode */ - if (show && focus_client) - saved_focus = focus_client->window; - screen_showing_desktop = show; if (show) { /* bottom to top */ for (it = g_list_last(stacking_list); it != NULL; it = it->prev) { Client *client = it->data; - if (client->type == Type_Desktop) - client_focus(client); - else if (client->frame->visible && !client_should_show(client)) + if (client->frame->visible && !client_should_show(client)) engine_frame_hide(client->frame); } } else { @@ -406,15 +398,6 @@ void screen_show_desktop(gboolean show) } } - if (!show) { - Client *f = focus_client; - if (!f || f->type == Type_Desktop) { - Client *c = g_hash_table_lookup(client_map, - (gpointer)saved_focus); - if (c) client_focus(c); - } - } - show = !!show; /* make it boolean */ PROP_SET32(ob_root, net_showing_desktop, cardinal, show); |
