JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Jeroen Schot's shiftview patch
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 3f06ea7..ac96df1 100644 (file)
--- a/event.c
+++ b/event.c
@@ -135,6 +135,10 @@ buttonpress(XEvent *e) {
                                        else
                                                toggleview(buf);
                                }
+                               else if(ev->button == Button4)
+                                       shiftview("-1");
+                               else if(ev->button == Button5)
+                                       shiftview("1");
                                return;
                        }
                }