move some init up and shed some blank lines

This commit is contained in:
okan 2014-01-27 15:13:09 +00:00
parent 469db5f371
commit 0608610cc7
2 changed files with 3 additions and 6 deletions

View File

@ -119,7 +119,6 @@ client_init(Window win, struct screen_ctx *sc, int mapped)
TAILQ_INSERT_TAIL(&Clientq, cc, entry);
xu_ewmh_net_client_list(sc);
xu_ewmh_restore_net_wm_state(cc);
if (mapped)

View File

@ -41,20 +41,18 @@ screen_init(int which)
sc = xcalloc(1, sizeof(*sc));
TAILQ_INIT(&sc->mruq);
sc->which = which;
sc->visual = DefaultVisual(X_Dpy, sc->which);
sc->colormap = DefaultColormap(X_Dpy, sc->which);
sc->rootwin = RootWindow(X_Dpy, sc->which);
conf_screen(sc);
xu_ewmh_net_supported(sc);
xu_ewmh_net_supported_wm_check(sc);
conf_screen(sc);
screen_update_geometry(sc);
TAILQ_INIT(&sc->mruq);
group_init(sc);
rootattr.cursor = Conf.cursor[CF_NORMAL];