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);
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))
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 */
Output *output = client->workspace->output;
render_workspace(conn, output, output->current_workspace);
xcb_flush(conn);
+ } else {
+ redecorate_window(conn, client);
}
return 1;