summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index ec37588..f5aa010 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1478,7 +1478,7 @@ togglefloating(const Arg *arg) {
1478 1478
1479void 1479void
1480togglelayout(const Arg *arg) { 1480togglelayout(const Arg *arg) {
1481 if(arg->v) 1481 if(arg && arg->v)
1482 lt = (Layout *)arg->v; 1482 lt = (Layout *)arg->v;
1483 else if(++lt == &layouts[LENGTH(layouts)]) 1483 else if(++lt == &layouts[LENGTH(layouts)])
1484 lt = &layouts[0]; 1484 lt = &layouts[0];