[hackers] [wmii] Minor change to mouse.c

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 09 03:00:28 2007

changeset: 1792:4819811e0303
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Feb 08 20:56:04 2007 -0500
summary: Minor change to mouse.c

diff -r 3e90d9862047 -r 4819811e0303 mouse.c
--- a/mouse.c Thu Feb 08 20:39:10 2007 -0500
+++ b/mouse.c Thu Feb 08 20:56:04 2007 -0500
@@ -358,7 +358,10 @@ do_mouse_resize(Client *c, BlitzAlign al
                 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);
Received on Fri Feb 09 2007 - 03:00:28 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:01 UTC