summaryrefslogtreecommitdiff
path: root/src/add_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/add_window.c')
-rw-r--r--src/add_window.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/add_window.c b/src/add_window.c
index 1f5abe1..e451bfe 100644
--- a/src/add_window.c
+++ b/src/add_window.c
@@ -162,6 +162,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
Bool width_ever_changed_by_user;
Bool height_ever_changed_by_user;
char *name;
+ Window wdummy = None;
#ifdef DEBUG
fprintf(stderr, "AddWindow: w = 0x%lx\n", (unsigned long) w);
@@ -440,7 +441,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
XGrabServer(dpy);
if (!XQueryPointer(dpy, Scr->Root, &root,
- &JunkChild, &JunkX, &JunkY,
+ &wdummy, &JunkX, &JunkY,
&AddingX, &AddingY, &mask))
mask = 0;
@@ -567,7 +568,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
continue;
}
- XQueryPointer(dpy, Scr->Root, &JunkRoot, &JunkChild,
+ XQueryPointer(dpy, Scr->Root, &wdummy, &wdummy,
&JunkX, &JunkY, &AddingX, &AddingY,
&JunkMask);
@@ -662,7 +663,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
* using multiple GXxor lines so that we don't need to
* grab the server.
*/
- XQueryPointer(dpy, Scr->Root, &JunkRoot, &JunkChild,
+ XQueryPointer(dpy, Scr->Root, &wdummy, &wdummy,
&JunkX, &JunkY, &AddingX, &AddingY,
&JunkMask);
@@ -765,7 +766,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
* reparented, so we'll get a DestroyNotify for it. We won't have
* gotten one for anything up to here, however.
*/
- if (XGetGeometry(dpy, tmp_win->w, &JunkRoot, &JunkX, &JunkY,
+ if (XGetGeometry(dpy, tmp_win->w, &wdummy, &JunkX, &JunkY,
&JunkWidth, &JunkHeight, &JunkBW, &JunkDepth) == 0) {
free(tmp_win);
XUngrabServer(dpy);