comparison event.c @ 78:0d71fb80b592

changing XFlush into XSync
author Anselm R. Garbe <garbeam@wmii.de>
date Sat, 15 Jul 2006 18:11:14 +0200
parents 38c8f7f7d401
children aabebd6e61f3
comparison
equal deleted inserted replaced
77:38c8f7f7d401 78:0d71fb80b592
126 Arg a; 126 Arg a;
127 XButtonPressedEvent *ev = &e->xbutton; 127 XButtonPressedEvent *ev = &e->xbutton;
128 Client *c; 128 Client *c;
129 129
130 if(barwin == ev->window) { 130 if(barwin == ev->window) {
131 x = (arrange == dofloat) ? textw("~") : 0; 131 x = 0;
132 for(a.i = 0; a.i < TLast; a.i++) { 132 for(a.i = 0; a.i < TLast; a.i++) {
133 x += textw(tags[a.i]); 133 x += textw(tags[a.i]);
134 if(ev->x < x) { 134 if(ev->x < x) {
135 view(&a); 135 view(&a);
136 break; 136 break;