From b8fe4a7270502dd9242bd5585b67f3afbdbbbadb Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Sat, 20 Jan 2024 16:07:00 +0100 Subject: Make MultiScreen a local variable Signed-off-by: Tim Wiederhake --- src/screen.h | 1 - src/twm.c | 2 +- 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3