From 6a7b0f92779405df1ef0ea9b7c950899367cd88f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 30 Mar 2010 08:12:06 +0200 Subject: [PATCH] Bugfix: The last commit also needs to be applied to some other pieces of code (Thanks ffMeta) --- src/handlers.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 67b377f8..d9fa0d2d 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -636,6 +636,9 @@ int handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t state, if (client->dock) return 1; + if (!workspace_is_visible(client->workspace)) + return 1; + int mode = container_mode(client->container, true); if (mode == MODE_STACK || mode == MODE_TABBED) render_container(conn, client->container); @@ -702,6 +705,9 @@ int handle_windowname_change_legacy(void *data, xcb_connection_t *conn, uint8_t if (client->dock) return 1; + if (!workspace_is_visible(client->workspace)) + return 1; + if (client->container != NULL && (client->container->mode == MODE_STACK || client->container->mode == MODE_TABBED)) @@ -1001,7 +1007,6 @@ int handle_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t LOG("Urgency flag changed to %d\n", client->urgent); workspace_update_urgent_flag(client->workspace); - redecorate_window(conn, client); /* If the workspace this client is on is not visible, we need to redraw * the workspace bar */ @@ -1009,6 +1014,8 @@ int handle_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t Output *output = client->workspace->output; render_workspace(conn, output, output->current_workspace); xcb_flush(conn); + } else { + redecorate_window(conn, client); } return 1; -- 2.39.5