This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
dwm
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o
master
Anselm R. Garbe
17 years ago
parent
5762e92994
commit
8be3f3ec9e
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
screen.c
+ 2
- 1
screen.c
View File
@ -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
;
Write
Preview
Loading…
Cancel
Save