client: check that screen is not NULL
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4d0a025f51
commit
8c8c260ceb
2
client.c
2
client.c
|
@ -220,7 +220,7 @@ client_set_name(lua_State *L, int cidx, const char *name)
|
||||||
bool
|
bool
|
||||||
client_maybevisible(client_t *c, screen_t *screen)
|
client_maybevisible(client_t *c, screen_t *screen)
|
||||||
{
|
{
|
||||||
if(c->screen == screen)
|
if(screen && c->screen == screen)
|
||||||
{
|
{
|
||||||
if(c->sticky || c->type == WINDOW_TYPE_DESKTOP)
|
if(c->sticky || c->type == WINDOW_TYPE_DESKTOP)
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue