summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:48:44 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:48:44 +0200
commite995c1b5325f88d197675950c15762d001dd80ef (patch)
tree972031f4a7c0736cd56a88366d143204a2660d0b /event.c
parentremoved small 1px gap, somehow without it things feel better (diff)
downloaddwm-e995c1b5325f88d197675950c15762d001dd80ef.tar.gz
dwm-e995c1b5325f88d197675950c15762d001dd80ef.zip
trying a different configuration
Diffstat (limited to '')
-rw-r--r--event.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/event.c b/event.c
index 35cd4f9..3c83aa8 100644
--- a/event.c
+++ b/event.c
@@ -105,21 +105,19 @@ buttonpress(XEvent *e)
105 XButtonPressedEvent *ev = &e->xbutton; 105 XButtonPressedEvent *ev = &e->xbutton;
106 106
107 if(barwin == ev->window) { 107 if(barwin == ev->window) {
108 if(ev->x < modew) 108 x = 0;
109 togglemode(NULL); 109 for(a.i = 0; a.i < ntags; a.i++) {
110 else { 110 x += textw(tags[a.i]);
111 x = modew; 111 if(ev->x < x) {
112 for(a.i = 0; a.i < ntags; a.i++) { 112 if(ev->button == Button1)
113 x += textw(tags[a.i]); 113 view(&a);
114 if(ev->x < x) { 114 else if(ev->button == Button3)
115 if(ev->button == Button1) 115 toggleview(&a);
116 view(&a); 116 return;
117 else if(ev->button == Button3)
118 toggleview(&a);
119 return;
120 }
121 } 117 }
122 } 118 }
119 if(ev->x < x + bmw)
120 togglemode(NULL);
123 } 121 }
124 else if((c = getclient(ev->window))) { 122 else if((c = getclient(ev->window))) {
125 focus(c); 123 focus(c);