]> git.sur5r.net Git - i3/i3/commitdiff
Use correct fallback color for decoration_border. 2150/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Wed, 6 Jan 2016 14:19:42 +0000 (09:19 -0500)
committerIngo Bürk <ingo.buerk@tngtech.com>
Wed, 6 Jan 2016 14:19:42 +0000 (09:19 -0500)
The newly introduced decoration_border color incorrectly uses the default value
for "background" as a fallback when not specified. Instead, it should use the
user-specified "background" as a fallback.

fixes #2149

src/config_directives.c

index fcc480945efc33cf2ade27dab37007bfbd548b14..85cea4cfb04c5aa058ccb768b96433638910f4f9 100644 (file)
@@ -347,6 +347,8 @@ CFGFUN(color, const char *colorclass, const char *border, const char *background
             }                                                                                          \
             if (decoration_border != NULL) {                                                           \
                 config.client.classname.decoration_border = draw_util_hex_to_color(decoration_border); \
+            } else {                                                                                   \
+                config.client.classname.decoration_border = config.client.classname.background;        \
             }                                                                                          \
         }                                                                                              \
     } while (0)