diff options
author | emersion <contact@emersion.fr> | 2018-08-19 09:21:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-19 09:21:55 +0100 |
commit | 2c91afbb34f649fcd4de690be5bedba4d989a7f0 (patch) | |
tree | 681f45a530a1f8d5966161291c3cb482e52edb6e /sway/desktop/transaction.c | |
parent | Merge pull request #2453 from ianyfan/commands (diff) | |
parent | Replace hacky L_FLOATING container with a list (diff) | |
download | sway-2c91afbb34f649fcd4de690be5bedba4d989a7f0.tar.gz sway-2c91afbb34f649fcd4de690be5bedba4d989a7f0.tar.zst sway-2c91afbb34f649fcd4de690be5bedba4d989a7f0.zip |
Merge pull request #2487 from RyanDwyer/workspace-floating-list
Replace hacky L_FLOATING container with a list
Diffstat (limited to 'sway/desktop/transaction.c')
-rw-r--r-- | sway/desktop/transaction.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index c300558a..692fb447 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c | |||
@@ -111,8 +111,9 @@ static void copy_pending_state(struct sway_container *container, | |||
111 | state->using_csd = view->using_csd; | 111 | state->using_csd = view->using_csd; |
112 | } else if (container->type == C_WORKSPACE) { | 112 | } else if (container->type == C_WORKSPACE) { |
113 | state->ws_fullscreen = container->sway_workspace->fullscreen; | 113 | state->ws_fullscreen = container->sway_workspace->fullscreen; |
114 | state->ws_floating = container->sway_workspace->floating; | 114 | state->ws_floating = create_list(); |
115 | state->children = create_list(); | 115 | state->children = create_list(); |
116 | list_cat(state->ws_floating, container->sway_workspace->floating); | ||
116 | list_cat(state->children, container->children); | 117 | list_cat(state->children, container->children); |
117 | } else { | 118 | } else { |
118 | state->children = create_list(); | 119 | state->children = create_list(); |
@@ -189,6 +190,7 @@ static void transaction_apply(struct sway_transaction *transaction) { | |||
189 | // Any child containers which are being deleted will be cleaned up in | 190 | // Any child containers which are being deleted will be cleaned up in |
190 | // transaction_destroy(). | 191 | // transaction_destroy(). |
191 | list_free(container->current.children); | 192 | list_free(container->current.children); |
193 | list_free(container->current.ws_floating); | ||
192 | 194 | ||
193 | memcpy(&container->current, &instruction->state, | 195 | memcpy(&container->current, &instruction->state, |
194 | sizeof(struct sway_container_state)); | 196 | sizeof(struct sway_container_state)); |