X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=e5ca1664854a8402c24820185dbf8dce386de1d8;hp=1a8de56b208373c5e94b7100278f5583c51c0d39;hb=d4b7a9a3735deeab639f28b5bb2f568e0dc49616;hpb=4d67199a4bb68e5377d2fece62a83fde66c92861 diff --git a/event.c b/event.c index 1a8de56..e5ca166 100644 --- a/event.c +++ b/event.c @@ -118,21 +118,24 @@ buttonpress(XEvent *e) } } else if((c = getclient(ev->window))) { - higher(c); focus(c); switch(ev->button) { default: break; case Button1: - if(!c->ismax && (arrange == dofloat || c->isfloat)) + if(!c->ismax && (arrange == dofloat || c->isfloat)) { + restack(c); movemouse(c); + } break; case Button2: zoom(NULL); break; case Button3: - if(!c->ismax && (arrange == dofloat || c->isfloat)) + if(!c->ismax && (arrange == dofloat || c->isfloat)) { + restack(c); resizemouse(c); + } break; } }