X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=a17034cbcac615b3709768a22238fb72dee37aac;hb=d9c475d7f4978f97b63b462425eb413c11fe337b;hp=f4ac2d546a64a39a8f683c07e054b96df141a46e;hpb=b427a2c6cb9c221075e42d0d1007e980a949a7df;p=dwm.git diff --git a/event.c b/event.c index f4ac2d5..a17034c 100644 --- a/event.c +++ b/event.c @@ -126,6 +126,8 @@ buttonpress(XEvent *e) { if(ev->x < x + bmw) { if(ev->button == Button1) togglemode(NULL); + else if(ev->button == Button3) + togglestackpos(NULL); } } else if((c = getclient(ev->window))) { @@ -177,8 +179,9 @@ configurerequest(XEvent *e) { configure(c); XSync(dpy, False); if(c->isfloat) { - if(isvisible(c)) - resize(c, False, TopLeft); + resize(c, False, TopLeft); + if(!isvisible(c)) + ban(c); } else arrange(NULL);