]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t draw decorations of CT_FLOATING_CONs
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Nov 2010 18:24:14 +0000 (19:24 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Nov 2010 18:24:14 +0000 (19:24 +0100)
src/x.c

diff --git a/src/x.c b/src/x.c
index 0de6c65a8ea6bddcff217c94edbd64633f04f7f5..c489dca78b18781a1e6ad796113bb56baf84698d 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -224,11 +224,15 @@ void x_window_kill(xcb_window_t window) {
  *
  */
 void x_draw_decoration(Con *con) {
-    /* this code needs to run for:
+    /* This code needs to run for:
      *  • leaf containers
      *  • non-leaf containers which are in a stacking container
+     *
+     * It does not need to run for:
+     *  • floating containers (they don’t have a decoration)
      */
-    if (!con_is_leaf(con) && con->parent->layout != L_STACKED)
+    if ((!con_is_leaf(con) && con->parent->layout != L_STACKED) ||
+        con->type == CT_FLOATING_CON)
         return;
     DLOG("decoration should be rendered for con %p\n", con);