command/swap: fix cursor warp on focus change

(cherry picked from commit bed50f0dd2)
This commit is contained in:
ymcx
2024-05-14 20:23:18 +03:00
committed by Isaac Freund
parent cfb67b9e7a
commit 9b0e90cdb4

View File

@ -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();
}
}