diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-06-23 21:52:39 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-06-23 21:52:39 +0000 |
commit | f3606649643e49df0add499c50a7d11e99f0d4f5 (patch) | |
tree | 5a1a7355a1cc0a39f5f18e9b2559ce5baedc2672 /app/cwm/calmwm.c | |
parent | b0bd392c89961c461fa9758f22ca4f687fbaaae0 (diff) |
tidy up startup/init routines
ok oga@
Diffstat (limited to 'app/cwm/calmwm.c')
-rw-r--r-- | app/cwm/calmwm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c index eb924e8b9..464460145 100644 --- a/app/cwm/calmwm.c +++ b/app/cwm/calmwm.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. * - * $Id: calmwm.c,v 1.40 2009/06/20 00:22:39 okan Exp $ + * $Id: calmwm.c,v 1.41 2009/06/23 21:52:38 okan Exp $ */ #include "headers.h" @@ -69,13 +69,15 @@ main(int argc, char **argv) if (signal(SIGCHLD, sigchld_cb) == SIG_ERR) err(1, "signal"); - group_init(); - Starting = 1; dpy_init(display_name); + + screen_init(); + group_init(); + client_init(); + bzero(&Conf, sizeof(Conf)); conf_setup(&Conf, conf_file); - client_setup(); xu_getatoms(); x_setup(); Starting = 0; @@ -99,8 +101,6 @@ dpy_init(const char *dpyname) XSetErrorHandler(x_errorhandler); HasRandr = XRRQueryExtension(X_Dpy, &Randr_ev, &i); - - TAILQ_INIT(&Screenq); } void |