]> git.sur5r.net Git - i3/i3/commitdiff
Don’t overwrite border width when already set (placeholders).
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 21 Mar 2015 22:02:35 +0000 (23:02 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 21 Mar 2015 22:02:35 +0000 (23:02 +0100)
fixes #1501

src/manage.c

index 077d5720b540366445b3fe813febfc3dbe9fbe78..2b3c6743a20df8b8b1c4525c9719fa11cdf6f01a 100644 (file)
@@ -452,7 +452,9 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
     }
 
     /* explicitly set the border width to the default */
-    nc->current_border_width = (want_floating ? config.default_floating_border_width : config.default_border_width);
+    if (nc->current_border_width == -1) {
+        nc->current_border_width = (want_floating ? config.default_floating_border_width : config.default_border_width);
+    }
 
     /* to avoid getting an UnmapNotify event due to reparenting, we temporarily
      * declare no interest in any state change event of this window */