diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-10-11 08:24:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 08:24:38 -0400 |
commit | ce713efcd23b82a7d85c1976ddfbd46f08133ff6 (patch) | |
tree | c7e0986aa282c00bcc12cde70820ffbca07cb6b5 /sway/handlers.c | |
parent | 9ad6fc592dd6bd5bf29e60b03186bba32f5c9fa3 (diff) | |
parent | 166c2a3687d2819184457490132dd0c109238873 (diff) |
Merge pull request #945 from thejan2009/workspace_layout
Fixes dealing with workspace_layout and related bugs [rfc]
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 2235bc8b..9a84182a 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -398,17 +398,6 @@ static bool handle_view_created(wlc_handle handle) { if (workspace && workspace->fullscreen) { set_focused_container(workspace->fullscreen); } - - // if parent container is a workspace, newview its only child and - // layout is tabbed/stacked, add a container around newview - swayc_t *parent_container = newview->parent; - if (parent_container && parent_container->type == C_WORKSPACE && - parent_container->children && parent_container->children->length == 1 && - (parent_container->layout == L_TABBED || parent_container->layout == L_STACKED)) { - swayc_t *container = new_container(newview, parent_container->layout); - set_focused_container(newview); - arrange_windows(container, -1, -1); - } } else { swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); wlc_handle *h = malloc(sizeof(wlc_handle)); |