con_border_style: check con->fullscreen_mode directly

This commit is contained in:
Orestis Floros 2018-08-22 14:09:05 +03:00
parent efc78de4ee
commit 0ac75bea5a
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 1 additions and 2 deletions

View File

@ -1711,8 +1711,7 @@ adjacent_t con_adjacent_borders(Con *con) {
* *
*/ */
int con_border_style(Con *con) { int con_border_style(Con *con) {
Con *fs = con_get_fullscreen_con(con->parent, CF_OUTPUT); if (con->fullscreen_mode == CF_OUTPUT || con->fullscreen_mode == CF_GLOBAL) {
if (fs == con) {
DLOG("this one is fullscreen! overriding BS_NONE\n"); DLOG("this one is fullscreen! overriding BS_NONE\n");
return BS_NONE; return BS_NONE;
} }