From 9b0e90cdb4fa1b0439fd63386e4b59c1149d9463 Mon Sep 17 00:00:00 2001 From: ymcx <89810988+ymcx@users.noreply.github.com> Date: Tue, 14 May 2024 20:23:18 +0300 Subject: [PATCH] command/swap: fix cursor warp on focus change (cherry picked from commit bed50f0dd2099e06c85f0fd0cc3bbdb10f3c9353) --- river/command/view_operations.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/river/command/view_operations.zig b/river/command/view_operations.zig index 285717d..4f1319b 100644 --- a/river/command/view_operations.zig +++ b/river/command/view_operations.zig @@ -67,6 +67,7 @@ pub fn swap( assert(!target.pending.float); assert(!target.pending.fullscreen); seat.focused.view.pending_wm_stack_link.swapWith(&target.pending_wm_stack_link); + seat.cursor.may_need_warp = true; server.root.applyPending(); } }