client: check that screen is not NULL

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-20 17:43:48 +02:00
parent 4d0a025f51
commit 8c8c260ceb
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ client_set_name(lua_State *L, int cidx, const char *name)
bool
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)
return true;