X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/69b738c097d8f471873a227e8668d8a35014be3d..7ab8c8728168234f6b9e99d1be384323d1246b10:/view.c?ds=inline diff --git a/view.c b/view.c index 3b5abba..9ee4c78 100644 --- a/view.c +++ b/view.c @@ -12,13 +12,14 @@ minclient() { Client *c, *min; + if((clients && clients->isfloat) || arrange == dofloat) + return clients; /* don't touch floating order */ for(min = c = clients; c; c = c->next) if(c->weight < min->weight) min = c; return min; } - static void reorder() { @@ -218,8 +219,10 @@ restack() Client *c; XEvent ev; - if(!sel) + if(!sel) { + drawstatus(); return; + } if(sel->isfloat || arrange == dofloat) { XRaiseWindow(dpy, sel->win); XRaiseWindow(dpy, sel->twin); @@ -296,8 +299,9 @@ zoom(Arg *arg) if(!(c = nexttiled(c->next))) return; detach(c); + if(clients) + clients->prev = c; c->next = clients; - clients->prev = c; clients = c; focus(c); arrange(NULL);