dont toggle when no client was passed to teh action
This commit is contained in:
parent
d43a109ba2
commit
d498522a56
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue