Re: [dev] dwm number of clients pointless?

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Mon, 14 Sep 2009 22:25:02 +0200

On 9/14/09, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
> Don't worry, I plan to make symbol a function pointer and then the
> layout implementor can return whatever he likes as indicator. [M]
> might become [%d]...

if the monitor struct had a char ntext[8] member then the layout
algorithm could set it (the layout struct would become a function
pointer)

this way it's less configurable by the user (layout writer should get
the symbol right)

 static void
 fancylayout(Monitor *m) {
     ...
     snprintf(m->ntext, sizeof m->ntext, "[%.2f]=", m->mfact);

and the config would become

 static const void (*layouts[])(Monitor *) = {
     tile,
     NULL,
     fancylayout,
     ...

not sure how useful this dynamic symbol is..
Received on Mon Sep 14 2009 - 20:25:02 UTC

This archive was generated by hypermail 2.2.0 : Mon Sep 14 2009 - 20:36:01 UTC