I've attached a version of pancake's mouseontitle patch that applies
cleanly to dwm tip.

I'd be grateful if someone else would verify that it works, so it can go
on the wiki.

-- 
Mark Taylor
PGP keyID D9ED771A
diff -r e50c3eb0f55a dwm.c
--- a/dwm.c	Thu Oct 11 20:50:01 2007 +0200
+++ b/dwm.c	Mon Oct 15 16:41:28 2007 -0400
@@ -317,6 +317,14 @@ buttonpress(XEvent *e) {
 		}
 		if((ev->x < x + blw) && ev->button == Button1)
 			setlayout(NULL);
+                if(ev->x > x + blw)
+			switch(ev->button) {
+				case Button1: zoom(NULL); break;
+				case Button2: togglefloating(NULL); break;
+				case Button3: killclient(NULL); break;
+				case Button4: focusprev(NULL); break;
+				case Button5: focusnext(NULL); break;
+			}
 	}
 	else if((c = getclient(ev->window))) {
 		focus(c);

Attachment: signature.asc
Description: PGP signature

Reply via email to