wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit c32d48e7e6e582417f8e7adde2758ca747cd8ea1
parent e0788410678a58f35a0f2ffe44f9e09cda5e85fa
Author: Kris Maglione <jg@suckless.org>
Date:   Thu,  8 Feb 2007 20:36:22 -0500

Added the much sought-after click-to-drag to the titlebars.


Diffstat:
event.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/event.c b/event.c @@ -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); }