diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-06 18:40:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-06 18:40:10 +0000 |
| commit | d498522a560529ef315dd30fc4bc14c7a6214b30 (patch) | |
| tree | 4e607a70282eb45b8723b7bcf1988136f988a9f9 | |
| parent | d43a109ba2ffd1d6f3bbd42a93265143f0e56582 (diff) | |
dont toggle when no client was passed to teh action
| -rw-r--r-- | openbox/action.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/action.c b/openbox/action.c index 1c54b6e8..cc934206 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -621,7 +621,10 @@ void action_previous_desktop_row(union ActionData *data) void action_toggle_decorations(union ActionData *data) { - Client *c = data->client.c; + Client *c = data->client.c;; + + if (!c) return; + c->disabled_decorations = c->disabled_decorations ? 0 : ~0; client_setup_decor_and_functions(c); } |
