push Screenq into screen_init

This commit is contained in:
okan
2013-04-12 14:46:30 +00:00
parent 90f95416c6
commit 6296efadaa
3 changed files with 9 additions and 8 deletions

View File

@@ -146,7 +146,6 @@ dpy_init(const char *dpyname)
static void
x_setup(void)
{
struct screen_ctx *sc;
struct keybinding *kb;
int i;
@@ -156,11 +155,8 @@ x_setup(void)
Cursor_question = XCreateFontCursor(X_Dpy, XC_question_arrow);
Cursor_resize = XCreateFontCursor(X_Dpy, XC_bottom_right_corner);
for (i = 0; i < ScreenCount(X_Dpy); i++) {
sc = xcalloc(1, sizeof(*sc));
screen_init(sc, i);
TAILQ_INSERT_TAIL(&Screenq, sc, entry);
}
for (i = 0; i < ScreenCount(X_Dpy); i++)
screen_init(i);
/*
* XXX key grabs weren't done before, since Screenq was empty,