X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=b8036fcda1929824f27cf725eb9e9c7ec84c1618;hp=d200a8d0ab2818ae2d539c9ed1c0cdc6a928e653;hb=cee56d38632bbac08e7f59d58c7c7ab1370be329;hpb=7c4da2446531bfec2f9b32998604aa9ff2da11c3 diff --git a/event.c b/event.c index d200a8d..b8036fc 100644 --- a/event.c +++ b/event.c @@ -156,14 +156,14 @@ buttonpress(XEvent *e) { focus(c); if(CLEANMASK(ev->state) != MODKEY) return; - if(ev->button == Button1 && (lt->arrange == dofloat || c->isfloat)) { + if(ev->button == Button1 && (lt->arrange == swim || c->swimming)) { restack(); movemouse(c); } else if(ev->button == Button2) zoom(NULL); else if(ev->button == Button3 - && (lt->arrange == dofloat || c->isfloat) && !c->isfixed) + && (lt->arrange == swim || c->swimming) && !c->isfixed) { restack(); resizemouse(c); @@ -181,7 +181,7 @@ configurerequest(XEvent *e) { c->ismax = False; if(ev->value_mask & CWBorderWidth) c->border = ev->border_width; - if(c->isfixed || c->isfloat || (lt->arrange == dofloat)) { + if(c->isfixed || c->swimming || (lt->arrange == swim)) { if(ev->value_mask & CWX) c->x = ev->x; if(ev->value_mask & CWY) @@ -309,7 +309,7 @@ propertynotify(XEvent *e) { default: break; case XA_WM_TRANSIENT_FOR: XGetTransientForHint(dpy, c->win, &trans); - if(!c->isfloat && (c->isfloat = (trans != 0))) + if(!c->swimming && (c->swimming = (getclient(trans) != NULL))) lt->arrange(); break; case XA_WM_NORMAL_HINTS: