diff options
-rw-r--r-- | sway/commands/move.c | 3 | ||||
-rw-r--r-- | sway/desktop/render.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index 7b503624..59f1cf78 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -117,7 +117,8 @@ static void container_move_to_container_from_direction( | |||
117 | struct sway_container *container, struct sway_container *destination, | 117 | struct sway_container *container, struct sway_container *destination, |
118 | enum movement_direction move_dir) { | 118 | enum movement_direction move_dir) { |
119 | if (destination->view) { | 119 | if (destination->view) { |
120 | if (destination->parent == container->parent) { | 120 | if (destination->parent == container->parent && |
121 | destination->workspace == container->workspace) { | ||
121 | wlr_log(WLR_DEBUG, "Swapping siblings"); | 122 | wlr_log(WLR_DEBUG, "Swapping siblings"); |
122 | list_t *siblings = container_get_siblings(container); | 123 | list_t *siblings = container_get_siblings(container); |
123 | int container_index = list_find(siblings, container); | 124 | int container_index = list_find(siblings, container); |
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 9d80f3c7..bb3902ec 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -266,7 +266,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage, | |||
266 | struct sway_view *view = con->view; | 266 | struct sway_view *view = con->view; |
267 | if (view->saved_buffer) { | 267 | if (view->saved_buffer) { |
268 | render_saved_view(view, output, damage, view->container->alpha); | 268 | render_saved_view(view, output, damage, view->container->alpha); |
269 | } else { | 269 | } else if (view->surface) { |
270 | render_view_toplevels(view, output, damage, view->container->alpha); | 270 | render_view_toplevels(view, output, damage, view->container->alpha); |
271 | } | 271 | } |
272 | 272 | ||