if (want_floating) {
DLOG("geometry = %d x %d\n", nc->geometry.width, nc->geometry.height);
- /* motif hints will be applied only when `new_float` is `normal` or not
- * specified */
- bool automatic_border = (config.default_floating_border != BS_NORMAL &&
- motif_border_style == BS_NORMAL);
+ /* automatically set the border to the default value if a motif border
+ * was not specified */
+ bool automatic_border = (motif_border_style == BS_NORMAL);
floating_enable(nc, automatic_border);
}
- if (nc->border_style == BS_PIXEL) {
- /* if the border style is BS_PIXEL, explicitly set the border width of
- * the new container */
- nc->current_border_width = (want_floating ? config.default_floating_border_width : config.default_border_width);
- }
+ /* explicitly set the border width to the default */
+ 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 */