Check if c is non NULL before toggling titlebar
This commit is contained in:
parent
0b6d6d738a
commit
02298299b6
|
@ -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 New Issue