command/swap: fix cursor warp on focus change

(cherry picked from commit bed50f0dd2099e06c85f0fd0cc3bbdb10f3c9353)
This commit is contained in:
ymcx 2024-05-14 20:23:18 +03:00 committed by Isaac Freund
parent cfb67b9e7a
commit 9b0e90cdb4
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

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