From 1089fb73113c307f448b707dc3eb2c4e8e462068 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 17 May 2009 10:54:12 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20crash=20when=20above?= =?utf8?q?=20dock=20windows=20(Thanks=20Mirko)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 8316fc34..c45be5f4 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -193,7 +193,7 @@ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_ return 1; } - if (client->container->workspace != c_ws) { + if (client->container != NULL && client->container->workspace != c_ws) { /* This can happen when a client gets assigned to a different workspace than * the current one (see src/mainx.c:reparent_window). Shortly after it was created, * an enter_notify will follow. */ -- 2.39.5