]> git.sur5r.net Git - i3/i3/blobdiff - src/render.c
Include AnyEvent-I3 directory in dist tarballs (#2916)
[i3/i3] / src / render.c
index f8c49c38fca506144225ac93fcdeffc824da4acb..85548f26051307b6fb3a7906713750700dce214d 100644 (file)
@@ -1,5 +1,3 @@
-#undef I3__FILE__
-#define I3__FILE__ "render.c"
 /*
  * vim:ts=4:sw=4:expandtab
  *
@@ -21,10 +19,6 @@ static void render_con_stacked(Con *con, Con *child, render_params *p, int i);
 static void render_con_tabbed(Con *con, Con *child, render_params *p, int i);
 static void render_con_dockarea(Con *con, Con *child, render_params *p);
 
-/* change this to 'true' if you want to have additional borders around every
- * container (for debugging purposes) */
-static bool show_debug_borders = false;
-
 /*
  * Returns the height for the decorations
  */
@@ -54,15 +48,6 @@ void render_con(Con *con, bool render_fullscreen) {
          (render_fullscreen ? "fullscreen " : ""), con, con->name, con->layout,
          params.children);
 
-    /* Display a border if this is a leaf node. For container nodes, we don’t
-     * draw borders (except when in debug mode) */
-    if (show_debug_borders) {
-        params.rect.x += 2;
-        params.rect.y += 2;
-        params.rect.width -= 2 * 2;
-        params.rect.height -= 2 * 2;
-    }
-
     int i = 0;
     con->mapped = true;
 
@@ -180,7 +165,7 @@ void render_con(Con *con, bool render_fullscreen) {
                 /* By rendering the stacked container again, we handle the case
              * that we have a non-leaf-container inside the stack. In that
              * case, the children of the non-leaf-container need to be raised
-             * aswell. */
+             * as well. */
                 render_con(child, false);
             }