summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--event.c8
-rw-r--r--tag.c2
2 files changed, 3 insertions, 7 deletions
diff --git a/event.c b/event.c
index ac96df1..1454b0b 100644
--- a/event.c
+++ b/event.c
@@ -142,12 +142,8 @@ buttonpress(XEvent *e) {
142 return; 142 return;
143 } 143 }
144 } 144 }
145 if(ev->x < x + blw) 145 if(ev->x < x + blw && ev->button == Button1)
146 switch(ev->button) { 146 setlayout(NULL);
147 case Button1:
148 setlayout(NULL);
149 break;
150 }
151 else if(ev->button == Button4) 147 else if(ev->button == Button4)
152 focusclient("-1"); 148 focusclient("-1");
153 else if(ev->button == Button5) 149 else if(ev->button == Button5)
diff --git a/tag.c b/tag.c
index 19c63b1..2311ade 100644
--- a/tag.c
+++ b/tag.c
@@ -106,7 +106,7 @@ shiftview(const char *arg) {
106 for(i = 0; !seltag[i]; i++); 106 for(i = 0; !seltag[i]; i++);
107 for(j = i + 1; j < ntags && !seltag[j]; j++); 107 for(j = i + 1; j < ntags && !seltag[j]; j++);
108 if(j < ntags) 108 if(j < ntags)
109 return; /* more then one tag selected */ 109 return; /* more than one tag selected */
110 seltag[i] = False; 110 seltag[i] = False;
111 i += arg ? atoi(arg) : 0; 111 i += arg ? atoi(arg) : 0;
112 if(i < 0) 112 if(i < 0)