From 41200e99e2cf274538d8533ee449dfa610932e07 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 12 Apr 2013 14:46:30 +0000 Subject: push Screenq into screen_init --- calmwm.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'calmwm.c') diff --git a/calmwm.c b/calmwm.c index 8452f46..e0c8558 100644 --- a/calmwm.c +++ b/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. * - * $OpenBSD: calmwm.c,v 1.72 2012/12/18 00:14:41 okan Exp $ + * $OpenBSD: calmwm.c,v 1.73 2013/04/12 14:46:30 okan Exp $ */ #include @@ -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, -- cgit v1.2.3-2-gb3c3