diff options
author | Tim Wiederhake <twied@gmx.net> | 2024-01-20 16:07:00 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-20 16:07:00 +0100 |
commit | 6ea386bd98a737a9f54e2ca4216adf45868fd6e4 (patch) | |
tree | a4846effd0834fd410a786651b0256e2aecd2b6d /src/session.c | |
parent | 08b916e7ab8ea54ee6c38c485f11c9d6da898355 (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/session.c')
-rw-r--r-- | src/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c index 2c2787a..ce601ac 100644 --- a/src/session.c +++ b/src/session.c @@ -330,8 +330,9 @@ WriteWinConfigEntry(FILE *configFile, TwmWindow *theWindow, if (theWindow->icon_w) { int icon_x, icon_y; + Window wdummy = None; - XGetGeometry(dpy, theWindow->icon_w, &JunkRoot, &icon_x, + XGetGeometry(dpy, theWindow->icon_w, &wdummy, &icon_x, &icon_y, &JunkWidth, &JunkHeight, &JunkBW, &JunkDepth); if (!write_short(configFile, (short) icon_x)) |