about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 18:14:08 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 18:14:08 +0200
commit3e06edeb5df0aa95614cb0b11ba1931f01b6f337 (patch)
tree694fd3ea71771cb4d6f478a6278cad3041c23707 /event.c
parent78b050c13c8ea660ed801c21bddd2957a2bc3f40 (diff)
downloaddwm-3e06edeb5df0aa95614cb0b11ba1931f01b6f337.tar.gz
applied sanders man page patch, removed button2 from bar click
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index 5c21fcb..187c65e 100644
--- a/event.c
+++ b/event.c
@@ -109,10 +109,10 @@ buttonpress(XEvent *e)
 		for(a.i = 0; a.i < ntags; a.i++) {
 			x += textw(tags[a.i]);
 			if(ev->x < x) {
-				if(ev->button == Button3)
-					toggleview(&a);
-				else
+				if(ev->button == Button1)
 					view(&a);
+				else if(ev->button == Button3)
+					toggleview(&a);
 				return;
 			}
 		}
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188