From 9ea71f292b2270f37cf7ca641b7bae628ef41ed7 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 19 Oct 2018 00:04:21 +1000 Subject: Introduce cursor_rebase This function "rebases" the cursor on top of whatever is underneath it, without triggering any focus changes. --- sway/tree/view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sway/tree/view.c') diff --git a/sway/tree/view.c b/sway/tree/view.c index 85998547..43a9d510 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -653,9 +653,8 @@ void view_unmap(struct sway_view *view) { } else if (node && node->type == N_WORKSPACE) { cursor_warp_to_workspace(seat->cursor, node->sway_workspace); } - } else { - cursor_send_pointer_motion(seat->cursor, 0, true); } + cursor_rebase(seat->cursor); } transaction_commit_dirty(); -- cgit v1.2.3-54-g00ecf