Re: [dwm] mouse clicks

From: pancake <pancake_AT_youterm.com>
Date: Sat, 25 Aug 2007 21:47:14 +0200

Autoreply

> Using my external mouse I can use the wheel to switch between clients and
> zoom the one I'm interested on.

I forgot to say that middle button of the mouse puts the window floating.

> PD: The wheel support for tagging switching would be really useful too.

I think the patch to do this is not very clean :(

> Here's the patch, let me know what do you think:

Sorry i swapped the focusnext/focusnext events to make sense with META-j
and META-k keys. This is the "final" patch:

--- event.c.orig 2007-08-25 21:11:52.000000000 +0200
+++ event.c 2007-08-25 21:29:29.000000000 +0200
@@ -135,6 +135,15 @@
                }
                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);

  --pancake
Received on Sat Aug 25 2007 - 21:46:49 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:51:16 UTC