Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
added Sander to LICENSE (since he has contributed/revised big portions)
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
5c21fcb
..
187c65e
100644
(file)
--- 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;
}
}