projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d396963
)
implemented focusprev on button1 press in the bar, and focusnext on button3 press...
author
Anselm R.Garbe
<arg@10ksloc.org>
Fri, 11 Aug 2006 07:16:40 +0000
(09:16 +0200)
committer
Anselm R.Garbe
<arg@10ksloc.org>
Fri, 11 Aug 2006 07:16:40 +0000
(09:16 +0200)
event.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index 650967ea335817a13bc09279236e398504315f98..53a110a6d48d49c884bb69c7c2ab555808039681 100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-103,15
+103,19
@@
buttonpress(XEvent *e)
if(barwin == ev->window) {
switch(ev->button) {
-
default
:
+
case Button1
:
x = 0;
for(a.i = 0; a.i < ntags; a.i++) {
x += textw(tags[a.i]);
if(ev->x < x) {
view(&a);
-
break
;
+
return
;
}
}
+ focusprev(NULL);
+ break;
+ case Button3:
+ focusnext(NULL);
break;
case Button4:
viewprev(&a);