setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o
Anselm R. Garbe garbeam@gmail.com
Wed, 22 Aug 2007 19:06:35 +0200
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
screen.c
→
screen.c
@@ -3,6 +3,7 @@ #include "dwm.h"
#include <regex.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <X11/Xutil.h> /* static */@@ -245,7 +246,7 @@ ltidx = 0;;
} else { for(i = 0; i < nlayouts; i++) - if(arg == layouts[i].symbol) + if(!strcmp(arg, layouts[i].symbol)) break; if(i == nlayouts) return;