[hackers] [wmii] Added the much sought-after click-to-drag to the titlebars.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 09 02:40:26 2007

changeset: 1790:9f9f211bab09
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Feb 08 20:36:22 2007 -0500
summary: Added the much sought-after click-to-drag to the titlebars.

diff -r b3d475b0ce82 -r 9f9f211bab09 event.c
--- a/event.c Thu Feb 08 20:31:12 2007 -0500
+++ b/event.c Thu Feb 08 20:36:22 2007 -0500
@@ -100,6 +100,9 @@ buttonpress(XEvent *e) {
                         if(ev->button == Button1) {
                                 frame_to_top(f);
                                 focus(f->client, True);
+ if(ispointinrect(ev->x, ev->y, &f->titlebar.rect)
+ ||ispointinrect(ev->x, ev->y, &f->grabbox.rect))
+ do_mouse_resize(f->client, CENTER);
                         }
                         XAllowEvents(blz.dpy, ReplayPointer, ev->time);
                 }
Received on Fri Feb 09 2007 - 02:40:26 UTC

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