summaryrefslogtreecommitdiff
path: root/src/twm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/twm.c')
-rw-r--r--src/twm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/twm.c b/src/twm.c
index 5b0c07d..c61d19c 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -109,7 +109,6 @@ int SyncEventBase, SyncErrorBase;
ScreenInfo **ScreenList; /* structures for each screen */
ScreenInfo *Scr = NULL; /* the cur and prev screens */
int PreviousScreen; /* last screen that we were on */
-int FirstScreen; /* TRUE ==> first screen of display */
int message_level = 1; /* controls error messages */
static int RedirectError; /* TRUE ==> another window manager running */
static int TwmErrorHandler(Display *dpy, XErrorEvent *event); /* for setting RedirectError */
@@ -372,8 +371,9 @@ main(int argc, char *argv[])
}
numManaged = 0;
PreviousScreen = DefaultScreen(dpy);
- FirstScreen = TRUE;
for (scrnum = firstscrn; scrnum <= lastscrn; scrnum++) {
+ Bool FirstScreen = scrnum == firstscrn;
+
/* Make sure property priority colors is empty */
XChangeProperty(dpy, RootWindow(dpy, scrnum), _XA_MIT_PRIORITY_COLORS,
XA_CARDINAL, 32, PropModeReplace, NULL, 0);
@@ -634,7 +634,6 @@ main(int argc, char *argv[])
XUngrabServer(dpy);
- FirstScreen = FALSE;
Scr->FirstTime = FALSE;
} /* for */