aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 48117287..75f2d5a6 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -344,7 +344,7 @@ static bool handle_view_created(wlc_handle handle) {
} else {
if (focused->type == C_WORKSPACE &&
/* focused->children->length == 0 && */
- (focused->layout == L_TABBED || focused->layout == L_STACKED)) {
+ (focused->workspace_layout == L_TABBED || focused->workspace_layout == L_STACKED)) {
// will wrap the view in a container later on
encapsulate_view = true;
}