diff options
author | okan <okan> | 2014-10-08 15:31:01 +0000 |
---|---|---|
committer | okan <okan> | 2014-10-08 15:31:01 +0000 |
commit | 501aa2bcf364c2fbe29ede6ee8799aa4826a793c (patch) | |
tree | 8a0967e51d780b422f19761582c1346678bf8084 /screen.c | |
parent | c700f7e19a1af8f488da3657c8c25d1eb8accd0a (diff) | |
parent | 9cada703b9772c5d9738c9bfa632e57678174025 (diff) | |
download | cwm-501aa2bcf364c2fbe29ede6ee8799aa4826a793c.tar.gz cwm-501aa2bcf364c2fbe29ede6ee8799aa4826a793c.tar.xz cwm-501aa2bcf364c2fbe29ede6ee8799aa4826a793c.zip |
cvsimport
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/screen.c b/screen.c index a7da3e9..f2b053e 100644 --- a/screen.c +++ b/screen.c @@ -38,7 +38,7 @@ screen_init(int which) XSetWindowAttributes rootattr; unsigned int nwins, i; - sc = xcalloc(1, sizeof(*sc)); + sc = xmalloc(sizeof(*sc)); TAILQ_INIT(&sc->clientq); TAILQ_INIT(&sc->regionq); @@ -48,13 +48,16 @@ screen_init(int which) sc->rootwin = RootWindow(X_Dpy, sc->which); sc->cycling = 0; sc->hideall = 0; + conf_screen(sc); xu_ewmh_net_supported(sc); xu_ewmh_net_supported_wm_check(sc); screen_update_geometry(sc); - group_init(sc); + + for (i = 0; i < CALMWM_NGROUPS; i++) + group_init(sc, i); xu_ewmh_net_desktop_names(sc); xu_ewmh_net_wm_desktop_viewport(sc); |