JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Jeroen's {clean,spell}.diff patches, thanks Jeroen!
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 3f06ea7..1454b0b 100644 (file)
--- a/event.c
+++ b/event.c
@@ -135,15 +135,15 @@ buttonpress(XEvent *e) {
                                        else
                                                toggleview(buf);
                                }
+                               else if(ev->button == Button4)
+                                       shiftview("-1");
+                               else if(ev->button == Button5)
+                                       shiftview("1");
                                return;
                        }
                }
-               if(ev->x < x + blw)
-                       switch(ev->button) {
-                       case Button1:
-                               setlayout(NULL);
-                               break;
-                       }
+               if(ev->x < x + blw && ev->button == Button1)
+                       setlayout(NULL);
                else if(ev->button == Button4)
                        focusclient("-1");
                else if(ev->button == Button5)