diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1478,7 +1478,7 @@ togglefloating(const Arg *arg) { | |||
| 1478 | 1478 | ||
| 1479 | void | 1479 | void |
| 1480 | togglelayout(const Arg *arg) { | 1480 | togglelayout(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]; |
