Fibonacci patch for dwm 5.6

31 Jul 2009
Posted by luciferous
luciferous's picture

Recently I weaned myself off of my Macbook and purchased an Axioo Pico. The Pico is one of the 10-inch netbooks, very similar to the MSI Wind. I took this chance to change operating systems. I use Debian on the web server, so I thought I would use something else on the Pico, but I ended up going with Debian anyway.

I'm using dwm with the fibonacci patch, and the newest version on Squeeze (Testing) is 5.6. The change in 5.6 was not compatible with the fibonacci patch on “suckless” for dwm 5.2.

The incompatible change was that the clients list has now disappeared and needs to be accessed through a Monitor which is passed into the layout function.

/* Old way */
void monocle(void) {
    Client *c;
    for (c = nexttiled(clients); c; c = nexttiled(c->next)) ...

/* In 5.6 */
void monocle(Monitor *m) {
    Client *c;
    for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) ...

I've fixed up the fibonacci.c so it can compile with dwm 5.6, and I'm using it right now, but if anyone else wants to test it out: dwm5.6-fibonacci.c.

Tags: | Add a Comment