Mercurial > aewl
comparison event.c @ 362:ba6c55e1b9b2
trying a different configuration
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 25 Aug 2006 15:48:44 +0200 |
parents | c2a65784cb71 |
children | fc9d35252ab4 |
comparison
equal
deleted
inserted
replaced
361:728e74820e1d | 362:ba6c55e1b9b2 |
---|---|
103 Arg a; | 103 Arg a; |
104 Client *c; | 104 Client *c; |
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 for(a.i = 0; a.i < ntags; a.i++) { | |
110 x += textw(tags[a.i]); | |
111 if(ev->x < x) { | |
112 if(ev->button == Button1) | |
113 view(&a); | |
114 else if(ev->button == Button3) | |
115 toggleview(&a); | |
116 return; | |
117 } | |
118 } | |
119 if(ev->x < x + bmw) | |
109 togglemode(NULL); | 120 togglemode(NULL); |
110 else { | |
111 x = modew; | |
112 for(a.i = 0; a.i < ntags; a.i++) { | |
113 x += textw(tags[a.i]); | |
114 if(ev->x < x) { | |
115 if(ev->button == Button1) | |
116 view(&a); | |
117 else if(ev->button == Button3) | |
118 toggleview(&a); | |
119 return; | |
120 } | |
121 } | |
122 } | |
123 } | 121 } |
124 else if((c = getclient(ev->window))) { | 122 else if((c = getclient(ev->window))) { |
125 focus(c); | 123 focus(c); |
126 if(CLEANMASK(ev->state) == 0) | 124 if(CLEANMASK(ev->state) == 0) |
127 return; | 125 return; |