about summary refs log tree commit diff stats
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) {
 				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)
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) {
 	for(i = 0; !seltag[i]; i++);
 	for(j = i + 1; j < ntags && !seltag[j]; j++);
 	if(j < ntags)
-		return; /* more then one tag selected */
+		return; /* more than one tag selected */
 	seltag[i] = False;
 	i += arg ? atoi(arg) : 0;
 	if(i < 0)
n116'>116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158