aboutsummaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-14 10:34:07 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-14 10:34:07 +0200
commit6458d72572a30d2cc4af3385755033b2cca93057 (patch)
tree158be70ab7a84b729a66f0532c08aa7b336db217 /event.c
parent9cd686c93a80b4095d4ee0960bef320ccd9ea02c (diff)
downloaddwm-6458d72572a30d2cc4af3385755033b2cca93057.tar.gz
made barclick to select the specific tag
Diffstat (limited to 'event.c')
-rw-r--r--event.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/event.c b/event.c
index c55be0f..4edf139 100644
--- a/event.c
+++ b/event.c
@@ -50,7 +50,9 @@ buttonpress(XEvent *e)
XButtonPressedEvent *ev = &e->xbutton;
Client *c;
- if((c = getclient(ev->window))) {
+ if(barwin == ev->window)
+ barclick(ev);
+ else if((c = getclient(ev->window))) {
craise(c);
switch(ev->button) {
default:
remember that computers suck.