diff options
author | okan | 2014-08-24 15:37:45 +0000 |
---|---|---|
committer | okan | 2014-08-24 15:37:45 +0000 |
commit | 9beba1401a7ba0614ef2f779392ff8fd3ed54a52 (patch) | |
tree | f7ca64c5d4aec3c39c89a16aa83559c443f8a245 /screen.c | |
parent | 6ccf70f82d9136844ae8f2bb68b43aa31fd09d25 (diff) | |
download | cwm-9beba1401a7ba0614ef2f779392ff8fd3ed54a52.tar.gz |
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.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 <sys/param.h> @@ -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); |