mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Check if c is non NULL before toggling titlebar
This commit is contained in:
parent
0b6d6d738a
commit
02298299b6
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ uicb_client_toggletitlebar(int screen __attribute__ ((unused)),
|
|||
{
|
||||
Client *c = globalconf.focus->client;
|
||||
|
||||
if(!c->titlebar.sw)
|
||||
if(!c || !c->titlebar.sw)
|
||||
return;
|
||||
|
||||
if(!c->titlebar.position)
|
||||
|
|
Loading…
Reference in a new issue