diff options
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/events.c b/src/events.c index 54f5bff..3fd74d2 100644 --- a/src/events.c +++ b/src/events.c @@ -735,6 +735,7 @@ HandlePropertyNotify(void) char *name = NULL; XSetWindowAttributes attributes; /* attributes for create windows */ Pixmap pm; + int dummy = 0; Window wdummy = None; /* watch for standard colormap changes */ @@ -901,7 +902,7 @@ HandlePropertyNotify(void) unsigned long valuemask; /* mask for create windows */ if (!XGetGeometry(dpy, Tmp_win->wmhints->icon_pixmap, &wdummy, - &JunkX, &JunkY, + &dummy, &dummy, (unsigned int *) &Tmp_win->icon_width, (unsigned int *) &Tmp_win->icon_height, &JunkBW, &JunkDepth)) { @@ -1017,6 +1018,7 @@ RedoIconName(void) void HandleClientMessage(void) { + int dummy = 0; Window wdummy = None; if (Event.xclient.message_type == _XA_WM_CHANGE_STATE) { @@ -1027,7 +1029,7 @@ HandleClientMessage(void) XQueryPointer(dpy, Scr->Root, &wdummy, &wdummy, &(button.xmotion.x_root), &(button.xmotion.y_root), - &JunkX, &JunkY, &JunkMask); + &dummy, &dummy, &JunkMask); ExecuteFunction(F_ICONIFY, NULLSTR, Event.xany.window, Tmp_win, &button, FRAME, FALSE); @@ -1701,6 +1703,7 @@ HandleButtonPress(void) { unsigned int modifier; Cursor cur; + int dummy = 0; Window wdummy = None; /* too much code relies on this assumption */ @@ -1859,7 +1862,7 @@ HandleButtonPress(void) XTranslateCoordinates(dpy, Scr->Root, Scr->Root, Event.xbutton.x, Event.xbutton.y, - &JunkX, &JunkY, &Event.xany.window); + &dummy, &dummy, &Event.xany.window); if (Event.xany.window == 0 || (XFindContext(dpy, Event.xany.window, TwmContext, |