the focus_order shit is init'd by the screen_startup setting the number of desktops
This commit is contained in:
parent
9a5f1d7b5e
commit
8428becfde
1 changed files with 2 additions and 7 deletions
|
@ -8,7 +8,8 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
Client *focus_client = NULL;
|
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;
|
Window focus_backup = None;
|
||||||
|
|
||||||
|
@ -16,8 +17,6 @@ void focus_set_client(Client *client);
|
||||||
|
|
||||||
void focus_startup()
|
void focus_startup()
|
||||||
{
|
{
|
||||||
guint i;
|
|
||||||
|
|
||||||
/* create the window which gets focus when no clients get it. Have to
|
/* 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
|
make it override-redirect so we don't try manage it, since it is
|
||||||
mapped. */
|
mapped. */
|
||||||
|
@ -29,10 +28,6 @@ void focus_startup()
|
||||||
CopyFromParent, CWOverrideRedirect, &attrib);
|
CopyFromParent, CWOverrideRedirect, &attrib);
|
||||||
XMapRaised(ob_display, focus_backup);
|
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 */
|
/* start with nothing focused */
|
||||||
focus_set_client(NULL);
|
focus_set_client(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue