command/swap: fix cursor warp on focus change

This commit is contained in:
ymcx 2024-05-14 20:23:18 +03:00 committed by Isaac Freund
parent ad0b71c310
commit bed50f0dd2
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();
}
}