diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-22 19:06:35 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-22 19:06:35 +0200 |
| commit | 8be3f3ec9eec07ddf1622a04874e82730f108a26 (patch) | |
| tree | e8e4363eed32f20827680d6927cecc2ce14a90c8 /screen.c | |
| parent | reverted release CFLAGs (diff) | |
| download | dwm-8be3f3ec9eec07ddf1622a04874e82730f108a26.tar.gz dwm-8be3f3ec9eec07ddf1622a04874e82730f108a26.zip | |
setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o
Diffstat (limited to '')
| -rw-r--r-- | screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -3,6 +3,7 @@ | |||
| 3 | #include <regex.h> | 3 | #include <regex.h> |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include <stdlib.h> | 5 | #include <stdlib.h> |
| 6 | #include <string.h> | ||
| 6 | #include <X11/Xutil.h> | 7 | #include <X11/Xutil.h> |
| 7 | 8 | ||
| 8 | /* static */ | 9 | /* static */ |
| @@ -245,7 +246,7 @@ setlayout(const char *arg) { | |||
| 245 | } | 246 | } |
| 246 | else { | 247 | else { |
| 247 | for(i = 0; i < nlayouts; i++) | 248 | for(i = 0; i < nlayouts; i++) |
| 248 | if(arg == layouts[i].symbol) | 249 | if(!strcmp(arg, layouts[i].symbol)) |
| 249 | break; | 250 | break; |
| 250 | if(i == nlayouts) | 251 | if(i == nlayouts) |
| 251 | return; | 252 | return; |
