Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
small fix to separate client title from right-most tag
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
c2288f4
..
86fb43b
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-105,7
+105,9
@@
buttonpress(XEvent *e)
XButtonPressedEvent *ev = &e->xbutton;
if(barwin == ev->window) {
- x = 0;
+ if(ev->x < modew)
+ return;
+ x = modew;
for(a.i = 0; a.i < ntags; a.i++) {
x += textw(tags[a.i]);
if(ev->x < x) {