diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-06-11 19:42:24 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-06-11 19:42:24 +0100 |
| commit | 8f052596b2c79e74c0e47b93595f13a754b3e2ef (patch) | |
| tree | f5245732fc8b9ea320412e9277d47e6a40ad21cb /dwm.c | |
| parent | made lt visible again in config.def.h (diff) | |
| download | dwm-8f052596b2c79e74c0e47b93595f13a754b3e2ef.tar.gz dwm-8f052596b2c79e74c0e47b93595f13a754b3e2ef.zip | |
crash fix
Diffstat (limited to '')
| -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]; |
