summaryrefslogtreecommitdiff
path: root/src/twm.c
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
commit6ea386bd98a737a9f54e2ca4216adf45868fd6e4 (patch)
treea4846effd0834fd410a786651b0256e2aecd2b6d /src/twm.c
parent08b916e7ab8ea54ee6c38c485f11c9d6da898355 (diff)
Remove global variables JunkRoot, JunkChild
Replace with a local variable following the naming scheme from Identify() in src/menus.c. Signed-off-by: Tim Wiederhake <twied@gmx.net>
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 0b42bd2..881a29a 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -138,8 +138,6 @@ int ParseError; /* error parsing the .twmrc file */
int HandlingEvents = FALSE; /* are we handling events yet? */
-Window JunkRoot; /* junk window */
-Window JunkChild; /* junk window */
int JunkX; /* junk variable */
int JunkY; /* junk variable */
unsigned int JunkWidth, JunkHeight, JunkBW, JunkDepth, JunkMask;
@@ -823,8 +821,9 @@ RestoreWithdrawnLocation(TwmWindow *tmp)
int gravx, gravy;
unsigned int bw;
XWindowChanges xwc;
+ Window wdummy = None;
- if (XGetGeometry(dpy, tmp->w, &JunkRoot, &xwc.x, &xwc.y,
+ if (XGetGeometry(dpy, tmp->w, &wdummy, &xwc.x, &xwc.y,
&JunkWidth, &JunkHeight, &bw, &JunkDepth)) {
unsigned mask;