summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Wiederhake <twied@gmx.net>2024-01-20 16:07:00 +0100
committerTim Wiederhake <twied@gmx.net>2024-01-20 16:07:00 +0100
commitb8fe4a7270502dd9242bd5585b67f3afbdbbbadb (patch)
treed2d9755f9033513501d28a7f0f9641e23acaebc0
parent90058211800fd45ee7cc8408278d3b200bdfd2e5 (diff)
Make MultiScreen a local variable
Signed-off-by: Tim Wiederhake <twied@gmx.net>
-rw-r--r--src/screen.h1
-rw-r--r--src/twm.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/screen.h b/src/screen.h
index 403ce18..0cb307e 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -251,7 +251,6 @@ typedef struct ScreenInfo {
FuncKey FuncKeyRoot;
} ScreenInfo;
-extern int MultiScreen;
extern int NumScreens;
extern ScreenInfo **ScreenList;
extern ScreenInfo *Scr;
diff --git a/src/twm.c b/src/twm.c
index 548f468..4ca955a 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -96,7 +96,6 @@ XtSignalId si;
Display *dpy = NULL; /* which display are we talking to */
Window ResizeWindow; /* the window we are resizing */
-int MultiScreen = TRUE; /* try for more than one screen? */
int NumScreens; /* number of screens in ScreenList */
int HasShape; /* server supports shape extension? */
@@ -219,6 +218,7 @@ main(int argc, char *argv[])
char *restore_filename = NULL;
char *client_id = NULL;
char *loc;
+ int MultiScreen = TRUE; /* try for more than one screen? */
ProgramName = argv[0];
Argc = argc;