applied dwm-windowscrolling patch
authorarg@f00b4r <unknown>
Tue, 24 Jul 2007 16:25:01 +0000 (18:25 +0200)
committerarg@f00b4r <unknown>
Tue, 24 Jul 2007 16:25:01 +0000 (18:25 +0200)
event.c

diff --git a/event.c b/event.c
index ad4e271..3f06ea7 100644 (file)
--- a/event.c
+++ b/event.c
@@ -144,6 +144,10 @@ buttonpress(XEvent *e) {
                                setlayout(NULL);
                                break;
                        }
+               else if(ev->button == Button4)
+                       focusclient("-1");
+               else if(ev->button == Button5)
+                       focusclient("1");
        }
        else if((c = getclient(ev->window))) {
                focus(c);