diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-13 04:04:13 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-13 04:04:13 +0000 |
| commit | 270a5b25df8db500f94a7c29430ebc224ddf18b2 (patch) | |
| tree | af57f6e64af35449f3830b13295de669dd081262 /openbox/screen.c | |
| parent | 7f58bd9eaaa8285a743be4b7b210568cfe588e3e (diff) | |
set IconicState on windows that are not visible always. this means windows on other desktops too.
as well, this turned out to be a nice cleanup of the wmstate code.
regards to the random dude in #openbox complaining about the ICCCM to make me think to look this up and see if openbox was compliant.
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index f37c02e9..dcb9cd13 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -449,8 +449,7 @@ void screen_set_desktop(guint num) for (it = stacking_list; it; it = g_list_next(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; - if (client_should_show(c)) - frame_show(c->frame); + client_showhide(c); } } @@ -458,8 +457,7 @@ void screen_set_desktop(guint num) for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; - if (c->frame->visible && !client_should_show(c)) - frame_hide(c->frame); + client_showhide(c); } } @@ -875,8 +873,7 @@ void screen_show_desktop(gboolean show) for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *client = it->data; - if (client->frame->visible && !client_should_show(client)) - frame_hide(client->frame); + client_showhide(client); } } } else { @@ -884,8 +881,7 @@ void screen_show_desktop(gboolean show) for (it = stacking_list; it; it = g_list_next(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *client = it->data; - if (!client->frame->visible && client_should_show(client)) - frame_show(client->frame); + client_showhide(client); } } } |
