From: Michael Stapelberg Date: Wed, 4 Mar 2009 07:05:49 +0000 (+0100) Subject: Save unnecessary redecorations X-Git-Tag: 3.a~118 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6653c3a686cd9931bf309d1419ef53b8d9517ee7;p=i3%2Fi3 Save unnecessary redecorations --- diff --git a/src/util.c b/src/util.c index 1eda374f..06ef3222 100644 --- a/src/util.c +++ b/src/util.c @@ -149,7 +149,7 @@ void set_focus(xcb_connection_t *conn, Client *client) { /* If we’re in stacking mode, this renders the container to update changes in the title 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 flushes, so we don’t need to */