X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=166e9796cd25806e805f60980b24d6cd30214a97;hb=4f8b08d330a6c377ab919f48b8e922d1c5ded601;hp=69189dea1afb1b5c4e8f750c7447ceb52b1bb1b1;hpb=94f7c2707bcd11de4e0174abe0c2634980dc283e;p=dwm.git diff --git a/client.c b/client.c index 69189de..166e979 100644 --- a/client.c +++ b/client.c @@ -66,8 +66,8 @@ focusnext(Arg *arg) if(!sel) return; - if(!(c = getnext(sel->next))) - c = getnext(clients); + if(!(c = getnext(sel->next, tsel))) + c = getnext(clients, tsel); if(c) { higher(c); c->revert = sel; @@ -410,8 +410,8 @@ zoom(Arg *arg) if(!sel) return; - if(sel == getnext(clients) && sel->next) { - if((c = getnext(sel->next))) + if(sel == getnext(clients, tsel) && sel->next) { + if((c = getnext(sel->next, tsel))) sel = c; }