diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-01 10:32:50 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-01 10:32:50 +0200 |
commit | 1836b6740d7fc1a2e7fa0343aa7de657592ebfeb (patch) | |
tree | fe099e416526ba3d664ed47a298be890fa837d77 /event.c | |
parent | 924a0888126bd8ff12312c6e3e6a33003f271b2a (diff) |
applied sanders patch
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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; |