pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5762e92
)
setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o
author
Anselm R. Garbe
<garbeam@gmail.com>
Wed, 22 Aug 2007 17:06:35 +0000
(19:06 +0200)
committer
Anselm R. Garbe
<garbeam@gmail.com>
Wed, 22 Aug 2007 17:06:35 +0000
(19:06 +0200)
screen.c
patch
|
blob
|
history
diff --git
a/screen.c
b/screen.c
index
b534766
..
8d04911
100644
(file)
--- a/
screen.c
+++ b/
screen.c
@@
-3,6
+3,7
@@
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <X11/Xutil.h>
/* static */
@@
-245,7
+246,7
@@
setlayout(const char *arg) {
}
else {
for(i = 0; i < nlayouts; i++)
- if(
arg == layouts[i].symbol
)
+ if(
!strcmp(arg, layouts[i].symbol)
)
break;
if(i == nlayouts)
return;