X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=187c65e63492d66a83f9a130325666ef9e205a4b;hb=442334641e4124d8c32387287d431a83761ff916;hp=125c6a20353b881589033721d616104ae40c9822;hpb=823fb1118a30ae18a41650cf650df6b67861130b;p=dwm.git diff --git a/event.c b/event.c index 125c6a2..187c65e 100644 --- a/event.c +++ b/event.c @@ -109,10 +109,10 @@ buttonpress(XEvent *e) for(a.i = 0; a.i < ntags; a.i++) { x += textw(tags[a.i]); if(ev->x < x) { - if(ev->button == Button3) - toggleview(&a); - else + if(ev->button == Button1) view(&a); + else if(ev->button == Button3) + toggleview(&a); return; } } @@ -144,11 +144,11 @@ buttonpress(XEvent *e) static void configurerequest(XEvent *e) { + unsigned long newmask; Client *c; XConfigureRequestEvent *ev = &e->xconfigurerequest; XEvent synev; XWindowChanges wc; - unsigned long newmask; if((c = getclient(ev->window))) { gravitate(c, True);