Hi,

I wrote a little patch that allows starting a command by clicking the
right mouse button on the title bar; I used this to have a little
comfort by putting up a menu (using 9menu from the Debian
distribution).

Keep up the good work!

ciao
Stefan

-- 
Dipl.-Ing. Stefan Märkl              | [EMAIL PROTECTED]
Institute of Microelectronic Systems | http://www.ims.uni-hannover.de
Phone: +49-(0)-511-762-19657         | Fax: +49-(0)-511-762-19694
diff -up dwm-3.9/config.default.h dwm-3.9-PATCHED/config.default.h
--- dwm-3.9/config.default.h    2007-04-02 11:11:37.000000000 +0200
+++ dwm-3.9-PATCHED/config.default.h    2007-04-03 13:53:20.917937000 +0200
@@ -37,6 +37,9 @@ static Layout layout[] = { \
 #define NMASTER                        1               /* clients in master 
area */
 #define SNAP                   32              /* snap pixel */
 
+/* command to spawn on right click on title bar */
+#define MENUCOMMAND "exec xargs 9menu -popup -teleport <~/.dmenu.lst"
+
 /* key definitions */
 #define MODKEY                 Mod1Mask
 #define KEYS \
diff -up dwm-3.9/event.c dwm-3.9-PATCHED/event.c
--- dwm-3.9/event.c     2007-04-02 11:11:37.000000000 +0200
+++ dwm-3.9-PATCHED/event.c     2007-04-03 13:53:50.301475000 +0200
@@ -146,6 +146,10 @@ buttonpress(XEvent *e) {
                                setlayout(NULL);
                                break;
                        }
+    if(ev->button == Button3) {
+      spawn(MENUCOMMAND);
+      return;
+    }
        }
        else if((c = getclient(ev->window))) {
                focus(c);

Attachment: pgpQwoFteIE4i.pgp
Description: PGP signature

Reply via email to