diff options
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 65ac8b32..d02abf30 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -529,7 +529,7 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface) { view->container = container_create(view); if (target_sibling) { - container_add_sibling(target_sibling, view->container); + container_add_sibling(target_sibling, view->container, 1); } else { workspace_add_tiling(ws, view->container); } @@ -583,7 +583,10 @@ void view_unmap(struct sway_view *view) { workspace_detect_urgent(ws); } - cursor_send_pointer_motion(config->handler_context.seat->cursor, 0, true); + struct sway_seat *seat; + wl_list_for_each(seat, &input_manager->seats, link) { + cursor_send_pointer_motion(seat->cursor, 0, true); + } transaction_commit_dirty(); view->surface = NULL; |