commit 944a0526edfb181753fbd6ed7881d81a21f91e79
parent 7389d11fb203d470d5a7f4356fbcd1c282047bda
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 8 Feb 2007 20:56:04 -0500
Minor change to mouse.c
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mouse.c b/mouse.c
@@ -358,7 +358,10 @@ do_mouse_resize(Client *c, BlitzAlign align) {
hr_x = screen->rect.width / 2;
hr_y = screen->rect.height / 2;
XWarpPointer(blz.dpy, None, blz.root, 0, 0, 0, 0, hr_x, hr_y);
- while(XCheckMaskEvent(blz.dpy, MouseMask, &ev));
+ while(XCheckMaskEvent(blz.dpy, MouseMask, &ev)) {
+ pt_x = ev.xmotion.x;
+ pt_y = ev.xmotion.y;
+ }
}
XQueryPointer(blz.dpy, blz.root, &dummy, &dummy, &i, &i, &pt_x, &pt_y, &di);