about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-01 10:32:50 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-01 10:32:50 +0200
commit1836b6740d7fc1a2e7fa0343aa7de657592ebfeb (patch)
treefe099e416526ba3d664ed47a298be890fa837d77 /event.c
parent924a0888126bd8ff12312c6e3e6a33003f271b2a (diff)
downloaddwm-1836b6740d7fc1a2e7fa0343aa7de657592ebfeb.tar.gz
applied sanders patch
Diffstat (limited to 'event.c')
-rw-r--r--event.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/event.c b/event.c
index e97abad..a719bf2 100644
--- a/event.c
+++ b/event.c
@@ -111,13 +111,16 @@ buttonpress(XEvent *e)
 			if(ev->x < x) {
 				switch(ev->button) {
 				case Button1:
-					view(&a);
-					break;
-				case Button2:
-					toggletag(&a);
+					if(ev->state & MODKEY)
+						tag(&a);
+					else
+						view(&a);
 					break;
 				case Button3:
-					toggleview(&a);
+					if(ev->state & MODKEY)
+						toggletag(&a);
+					else
+						toggleview(&a);
 					break;
 				}
 				return;