]> git.sur5r.net Git - i3/i3/blobdiff - src/x.c
borders_to_hide doesn't need to be initialized
[i3/i3] / src / x.c
diff --git a/src/x.c b/src/x.c
index 9d92167ab643835ec2fc147f3f11dc3fdfd3b2a5..c68b9ccd5f1541d511101e58fd4dab20ecd1690f 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -504,9 +504,7 @@ void x_draw_decoration(Con *con) {
     /* 3: draw a rectangle in border color around the client */
     if (p->border_style != BS_NONE && p->con_is_leaf) {
         /* We might hide some borders adjacent to the screen-edge */
-        adjacent_t borders_to_hide = ADJ_NONE;
-        borders_to_hide = con_adjacent_borders(con) & config.hide_edge_borders;
-
+        adjacent_t borders_to_hide = con_adjacent_borders(con) & config.hide_edge_borders;
         Rect br = con_border_style_rect(con);
 
         /* These rectangles represent the border around the child window