diff options
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 287c158d..e422b24d 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -458,7 +458,9 @@ static void ipc_json_describe_workspace(struct sway_workspace *workspace, | |||
458 | 458 | ||
459 | static void get_deco_rect(struct sway_container *c, struct wlr_box *deco_rect) { | 459 | static void get_deco_rect(struct sway_container *c, struct wlr_box *deco_rect) { |
460 | enum sway_container_layout parent_layout = container_parent_layout(c); | 460 | enum sway_container_layout parent_layout = container_parent_layout(c); |
461 | bool tab_or_stack = parent_layout == L_TABBED || parent_layout == L_STACKED; | 461 | list_t *siblings = container_get_siblings(c); |
462 | bool tab_or_stack = (parent_layout == L_TABBED || parent_layout == L_STACKED) | ||
463 | && ((siblings && siblings->length > 1) || !config->hide_lone_tab); | ||
462 | if (((!tab_or_stack || container_is_floating(c)) && | 464 | if (((!tab_or_stack || container_is_floating(c)) && |
463 | c->current.border != B_NORMAL) || | 465 | c->current.border != B_NORMAL) || |
464 | c->pending.fullscreen_mode != FULLSCREEN_NONE || | 466 | c->pending.fullscreen_mode != FULLSCREEN_NONE || |