X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/0915da8842fd6e16b804ae3205ec2f6baaaa342c..2378a558a2f85e140b660d8460c045e7b746903b:/view.c diff --git a/view.c b/view.c index ac201e6..ce122ed 100644 --- a/view.c +++ b/view.c @@ -41,7 +41,7 @@ reorder() static Client * nexttiled(Client *c) { - for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); + for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); return c; } @@ -325,7 +325,7 @@ zoom(Arg *arg) return; if((c = sel) == nexttiled(clients)) - if(!(c = nexttiled(c))) + if(!(c = nexttiled(c->next))) return; detach(c); c->next = clients;