summary refs log tree commit diff
path: root/screen.c
diff options
context:
space:
mode:
authorokan <okan>2019-03-01 14:32:01 +0000
committerokan <okan>2019-03-01 14:32:01 +0000
commit9d252184582d96dd916bc97675d6a35a18921140 (patch)
tree4fd49cdda69bfc79ad66c3d305b2a001e74b0efb /screen.c
parentae231f67d0ac54fb6281831c10972cc2f1f37acf (diff)
downloadcwm-9d252184582d96dd916bc97675d6a35a18921140.tar.gz
cwm-9d252184582d96dd916bc97675d6a35a18921140.tar.xz
cwm-9d252184582d96dd916bc97675d6a35a18921140.zip
Tie group number and name together during config.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/screen.c b/screen.c
index 845a323..ffe1e0c 100644
--- a/screen.c
+++ b/screen.c
@@ -40,7 +40,6 @@ screen_init(int which)
 	Window			*wins, w0, w1, active = None;
 	XSetWindowAttributes	 rootattr;
 	unsigned int		 nwins, w;
-	int			 i;
 
 	sc = xmalloc(sizeof(*sc));
 
@@ -61,9 +60,7 @@ screen_init(int which)
 	xu_ewmh_net_supported_wm_check(sc);
 
 	screen_update_geometry(sc);
-
-	for (i = 0; i < Conf.ngroups; i++)
-		group_init(sc, i);
+	conf_group(sc);
 
 	xu_ewmh_net_desktop_names(sc);
 	xu_ewmh_net_wm_desktop_viewport(sc);