X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=aa074275ccc300a2554dfcbd803a4af5e64fbe1d;hb=0c7bcc24cbd0d721a4e7d152c05886ac30cc4af3;hp=58df281687e91d4e99dc1c6137cdaabe234021f9;hpb=98c6a92eb56dbbbec32734f3d9206ae63c8f8c08;p=dwm.git diff --git a/event.c b/event.c index 58df281..aa07427 100644 --- a/event.c +++ b/event.c @@ -170,7 +170,7 @@ buttonpress(XEvent *e) default: break; case Button1: - if(arrange == dofloat || c->isfloat) { + if(!c->ismax && (arrange == dofloat || c->isfloat)) { higher(c); movemouse(c); } @@ -179,7 +179,7 @@ buttonpress(XEvent *e) lower(c); break; case Button3: - if(arrange == dofloat || c->isfloat) { + if(!c->ismax && (arrange == dofloat || c->isfloat)) { higher(c); resizemouse(c); }