From d4fb34abdd549f7331933178063bb1480e33b7db Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 27 May 2009 18:19:14 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20ignore=20enter=5Fnotif?= =?utf8?q?y=20events=20for=20clients=20on=20different=20screens=20(Thanks?= =?utf8?q?=20Mirko)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes ticket #41. --- src/handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 81fb8655..8f164cd2 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -199,11 +199,11 @@ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_ return 1; } - if (client->container != NULL && client->container->workspace != c_ws) { + if (client->workspace != c_ws && client->workspace->screen == c_ws->screen) { /* 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. */ - LOG("enter_notify for a client on a different workspace, ignoring\n"); + LOG("enter_notify for a client on a different workspace but the same screen, ignoring\n"); return 1; } -- 2.39.5