From 8c8c260cebe987f39b146e7fae34d0abd0881c69 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 20 Aug 2009 17:43:48 +0200 Subject: [PATCH] client: check that screen is not NULL Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 00b496a5..95c9f8af 100644 --- a/client.c +++ b/client.c @@ -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;