[dwm] cycling through tags?

From: Joerg van den Hoff <j.van_den_hoff_AT_fzd.de>
Date: Tue, 18 Nov 2008 23:33:53 +0100

hi,

I want to be able to cycle through all tags using some key combination
(instead of explicitely jumping to tag no. xxx).

in 4.9 someone on this list helped me getting this right:

void
goto_nexttag(const char *arg) {
    unsigned int i, j;

    memcpy(prevtags, seltags, sizeof seltags);
    for (i = 0; i < LENGTH(tags); i++) {
        if (seltags[i])
           j = (i + 1) % LENGTH(tags);
        seltags[i] = False;
    }
    seltags[j] = True;
    arrange();
}

was the function needed. this obviously does not work any longer in 5.2.
looking at the 5.2 source code I was not able to see immediately
the neccessary modifications to make it work again.

can somebody help me with this?

thanks,

joerg
Received on Tue Nov 18 2008 - 22:33:53 UTC

This archive was generated by hypermail 2.2.0 : Tue Nov 18 2008 - 23:12:03 UTC