fix: same-slot reorder is a no-op; WM_DESTROY clears card drag state; fix card_meta.h ms-rounding comment

This commit is contained in:
2026-07-27 02:47:29 -04:00
parent 439bb44e0d
commit 1585f0bbe6
4 changed files with 29 additions and 1 deletions
+1
View File
@@ -76,6 +76,7 @@ bool SlotMap::remove(const std::string& id) {
bool SlotMap::reorder(const std::string& id, int targetSlot) {
if (slotOf(id) < 0) return false; // not mapped -> no mutation
if (targetSlot < 0) targetSlot = 0;
if (slotOf(id) == targetSlot) return false; // already there — true no-op
// Detach the moving id first so the occupancy test below sees the post-move world.
remove(id);