changeset: 1899:73bb05e02153
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 18 13:27:51 2007 -0500
summary: Fix resizing quadrant bug.
diff -r 0f0545ba214e -r 73bb05e02153 event.c
--- a/event.c Sun Feb 18 12:33:17 2007 -0500
+++ b/event.c Sun Feb 18 13:27:51 2007 -0500
@@ -58,7 +58,7 @@ buttonpress(XEvent *e) {
break;
case Button3:
do_mouse_resize(f->client, False,
- quadofcoord(&f->rect, ev->x, ev->y));
+ quadofcoord(&f->rect, ev->x_root, ev->y_root));
frame_to_top(f);
focus(f->client, True);
break;
@@ -74,7 +74,7 @@ buttonpress(XEvent *e) {
else if(!ev->subwindow
&& !ispointinrect(ev->x, ev->y, &f->titlebar.rect))
do_mouse_resize(f->client, False,
- quadofcoord(&f->rect, ev->x, ev->y));
+ quadofcoord(&f->rect, ev->x_root, ev->y_root));
if(f->client != sel_client())
focus(f->client, True);
}
Received on Sun Feb 18 2007 - 19:31:33 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:25 UTC