Save unnecessary redecorations

This commit is contained in:
Michael Stapelberg
2009-03-04 08:05:49 +01:00
parent 3b50615a71
commit 6653c3a686

View File

@ -149,7 +149,7 @@ void set_focus(xcb_connection_t *conn, Client *client) {
/* If were in stacking mode, this renders the container to update changes in the title /* If were in stacking mode, this renders the container to update changes in the title
bars and to raise the focused client */ bars and to raise the focused client */
if (old_client != NULL) if ((old_client != NULL) && (old_client != client))
redecorate_window(conn, old_client); redecorate_window(conn, old_client);
/* redecorate_window flushes, so we dont need to */ /* redecorate_window flushes, so we dont need to */