X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=dcb9cd132f33a02c5e7b90f7516a2e9c8bf71fc4;hb=5f7ffb00ba0050de28e915f6dcbd711b03eec938;hp=f37c02e97704c12766dd6e31ba2c25643fa373df;hpb=85a1a0cfb3e6f57b37d7a7b83132698b2d6cdee3;p=chaz%2Fopenbox 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); } } }