Re: [dwm] 4.7 is delayed

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 8 Nov 2007 13:22:54 +0100

On Thu, Nov 08, 2007 at 01:07:50PM +0100, Szabolcs Nagy wrote:
> On 11/7/07, Anselm R. Garbe <arg_AT_suckless.org> wrote:
> > The KEYS macro is still used, because there are references to
> > tags-elements which can't be referenced in a static variable
> > definition of the same scope-level, at least not with my gcc.
> > I know that sucks, but I see no other possibility atm. Do you?
>
> hm i don't know any better solution either
> i forgot dwm uses tag strings to identify tags..
>
> this works, but ugly:
> const char *tag1 = "net";
> const char *tag2 = "work";
> ...
> const char *tags[] = {tag1, tag2, ..};
> Key keys[] = {{MODKEY,XK_1,view,tag1}, ..};

That's uglier than the KEYS macro.

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Thu Nov 08 2007 - 13:22:54 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:05:30 UTC