From 9beba1401a7ba0614ef2f779392ff8fd3ed54a52 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 24 Aug 2014 15:37:45 +0000 Subject: gc->hidden has never consistently kept track of a group's state; group_show() and group_hide() are not the only ways a group can change state - if all clients in a group are either hidden or unhidden, then that group's state should change, as well as the various EWMH ways. Instead of trying to keep track in a wide variety of places, simply query the clients in a group before needing to take action based on the group's state. Solves long standing confusion of when a group is hidden or not. --- screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 53c33f6..9769fee 100644 --- a/screen.c +++ b/screen.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: screen.c,v 1.63 2014/08/20 15:15:29 okan Exp $ + * $OpenBSD: screen.c,v 1.64 2014/08/24 15:37:45 okan Exp $ */ #include @@ -69,7 +69,6 @@ screen_init(int which) XFree(wins); } screen_updatestackingorder(sc); - group_set_state(sc); if (HasRandr) XRRSelectInput(X_Dpy, sc->rootwin, RRScreenChangeNotifyMask); -- cgit v1.2.3-2-gb3c3