X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=view.c;h=ce122eded5ac6f8abec5bca830c6b1cbc6ad83e8;hb=f18ed615ae7beb9eb6420510c83beb847d875bcb;hp=ac201e60e13ba39ceafba9fa52cd68cd860f9793;hpb=0915da8842fd6e16b804ae3205ec2f6baaaa342c;p=dwm.git 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;