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 | 783b31821d87ea551457f4700f796a51f359cfd1 (patch) | |
tree | 00ee2750f4ce1348b8661ffea760eca335648a66 /src/add_window.c | |
parent | c5a63751f8b4eab72794e56365ead929023f2b94 (diff) |
Remove global variables JunkWidth, JunkHeight, JunkBW, JunkDepth, JunkMask
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/add_window.c')
-rw-r--r-- | src/add_window.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/add_window.c b/src/add_window.c index 87cb51b..8af8f73 100644 --- a/src/add_window.c +++ b/src/add_window.c @@ -163,6 +163,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp) Bool height_ever_changed_by_user; char *name; int dummy = 0; + unsigned udummy = 0; Window wdummy = None; #ifdef DEBUG @@ -571,7 +572,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp) XQueryPointer(dpy, Scr->Root, &wdummy, &wdummy, &dummy, &dummy, &AddingX, &AddingY, - &JunkMask); + &udummy); if (Scr->DontMoveOff) { int AddingR, AddingB; @@ -666,7 +667,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp) */ XQueryPointer(dpy, Scr->Root, &wdummy, &wdummy, &dummy, &dummy, &AddingX, &AddingY, - &JunkMask); + &udummy); if (lastx != AddingX || lasty != AddingY) { DoResize(AddingX, AddingY, tmp_win); @@ -768,7 +769,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp) * gotten one for anything up to here, however. */ if (XGetGeometry(dpy, tmp_win->w, &wdummy, &dummy, &dummy, - &JunkWidth, &JunkHeight, &JunkBW, &JunkDepth) == 0) { + &udummy, &udummy, &udummy, &udummy) == 0) { free(tmp_win); XUngrabServer(dpy); return (NULL); |