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/workspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/tree/workspace.c') diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index a1282c1e..2a00824d 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -399,7 +399,7 @@ bool workspace_switch(struct sway_workspace *workspace, } seat_set_focus(seat, next); arrange_workspace(workspace); - cursor_send_pointer_motion(seat->cursor, 0, true); + cursor_rebase(seat->cursor); return true; } -- cgit v1.2.3