summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2014-09-23 13:45:48 +0000
committerokan <okan>2014-09-23 13:45:48 +0000
commitcb65869d7a01eb093e8a95caea5a6e21b6689f42 (patch)
treef04ae062e021208392acf27e282bc179f9531f0f /group.c
parentcbc7f760748f0519c70fa6c6d3c40a05810b7f9c (diff)
downloadcwm-cb65869d7a01eb093e8a95caea5a6e21b6689f42.tar.gz
cwm-cb65869d7a01eb093e8a95caea5a6e21b6689f42.tar.xz
cwm-cb65869d7a01eb093e8a95caea5a6e21b6689f42.zip
Move stuff that doesn't belong in group_init; while here, explicitly
initialize hideall and cycling.
Diffstat (limited to 'group.c')
-rw-r--r--group.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/group.c b/group.c
index ce5a504..7d05861 100644
--- a/group.c
+++ b/group.c
@@ -119,9 +119,6 @@ group_init(struct screen_ctx *sc)
 	struct group_ctx	*gc;
 	int			 i;
 
-	TAILQ_INIT(&sc->groupq);
-	sc->group_hideall = 0;
-
 	for (i = 0; i < CALMWM_NGROUPS; i++) {
 		gc = xcalloc(1, sizeof(*gc));
 		gc->sc = sc;
@@ -131,12 +128,6 @@ group_init(struct screen_ctx *sc)
 		TAILQ_INSERT_TAIL(&sc->groupq, gc, entry);
 	}
 
-	xu_ewmh_net_desktop_names(sc);
-	xu_ewmh_net_wm_desktop_viewport(sc);
-	xu_ewmh_net_wm_number_of_desktops(sc);
-	xu_ewmh_net_showing_desktop(sc);
-	xu_ewmh_net_virtual_roots(sc);
-
 	group_setactive(sc, 1);
 }
 
@@ -315,12 +306,12 @@ group_alltoggle(struct screen_ctx *sc)
 	struct group_ctx	*gc;
 
 	TAILQ_FOREACH(gc, &sc->groupq, entry) {
-		if (sc->group_hideall)
+		if (sc->hideall)
 			group_show(gc);
 		else
 			group_hide(gc);
 	}
-	sc->group_hideall = !sc->group_hideall;
+	sc->hideall = !sc->hideall;
 }
 
 void