From: Dana Jansens Date: Wed, 19 Mar 2003 08:05:58 +0000 (+0000) Subject: the focus_order shit is init'd by the screen_startup setting the number of desktops X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8428becfde4040d1043f6f1a84bfd99f45813e9c;p=chaz%2Fopenbox the focus_order shit is init'd by the screen_startup setting the number of desktops --- diff --git a/openbox/focus.c b/openbox/focus.c index d09494bf..58e9bcca 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -8,7 +8,8 @@ #include Client *focus_client = NULL; -GList **focus_order = NULL; +GList **focus_order = NULL; /* these lists are created when screen_startup + sets the number of desktops */ Window focus_backup = None; @@ -16,8 +17,6 @@ void focus_set_client(Client *client); void focus_startup() { - guint i; - /* create the window which gets focus when no clients get it. Have to make it override-redirect so we don't try manage it, since it is mapped. */ @@ -29,10 +28,6 @@ void focus_startup() CopyFromParent, CWOverrideRedirect, &attrib); XMapRaised(ob_display, focus_backup); - focus_order = g_new(GList*, screen_num_desktops); - for (i = 0; i < screen_num_desktops; ++i) - focus_order[i] = NULL; - /* start with nothing focused */ focus_set_client(NULL); }