]> git.sur5r.net Git - i3/i3/commitdiff
borders_to_hide doesn't need to be initialized
authorOrestis Floros <orestisf1993@gmail.com>
Thu, 4 Oct 2018 12:02:37 +0000 (15:02 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Sat, 13 Oct 2018 18:10:10 +0000 (21:10 +0300)
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 */
     /* 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
         Rect br = con_border_style_rect(con);
 
         /* These rectangles represent the border around the child window