On Thu, Nov 08, 2007 at 01:07:50PM +0100, Szabolcs Nagy wrote:
> On 11/7/07, Anselm R. Garbe <[EMAIL PROTECTED]> 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

Reply via email to