From 1a4854383b53eecf7db1f9bf28a8852e79f942f7 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 20 Mar 2014 17:20:48 +0100 Subject: [PATCH] Honour correctly "disable_border" in max_stack --- spectrwm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 5fc8877..e84dfb7 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -4790,7 +4790,7 @@ stack_master(struct workspace *ws, struct swm_geometry *g, int rot, bool flip) win_g.y += last_h + 2 * border_width + tile_gap; if (disable_border && !(bar_enabled && ws->bar_enabled) && - winno == 1){ + winno == 1) { bordered = false; win_g.w += 2 * border_width; win_g.h += 2 * border_width; @@ -5003,12 +5003,13 @@ max_stack(struct workspace *ws, struct swm_geometry *g) if (X(w) != gg.x || Y(w) != gg.y || WIDTH(w) != gg.w || HEIGHT(w) != gg.h) { w->g = gg; - if (bar_enabled && ws->bar_enabled){ - w->bordered = true; - } else { + + if (disable_border && !(bar_enabled && ws->bar_enabled)) { w->bordered = false; WIDTH(w) += 2 * border_width; HEIGHT(w) += 2 * border_width; + } else { + w->bordered = true; } update_window(w); -- 2.39.2