From 0ac75bea5a21e9cac6ad2139bc57d44d1a77a6e0 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Wed, 22 Aug 2018 14:09:05 +0300 Subject: [PATCH] con_border_style: check con->fullscreen_mode directly --- src/con.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/con.c b/src/con.c index 844d9b68..253d1d54 100644 --- a/src/con.c +++ b/src/con.c @@ -1711,8 +1711,7 @@ adjacent_t con_adjacent_borders(Con *con) { * */ int con_border_style(Con *con) { - Con *fs = con_get_fullscreen_con(con->parent, CF_OUTPUT); - if (fs == con) { + if (con->fullscreen_mode == CF_OUTPUT || con->fullscreen_mode == CF_GLOBAL) { DLOG("this one is fullscreen! overriding BS_NONE\n"); return BS_NONE; } -- 2.39.5