Fix MinimapCluster movable state restore

This commit is contained in:
Dusk-92
2026-08-31 15:20:40 +02:00
parent 940be5854c
commit 778aeaa879
+8 -6
View File
@@ -339,18 +339,20 @@ module.enable = function(self)
SavePosition(target, moveFrame)
end
if not target.cursorDrag and state.movable ~= nil then
moveFrame:SetMovable(state.movable)
end
-- A dragged frame remains user-placed. An untouched frame is restored
-- exactly to the state it had before Ctrl+Shift was pressed.
-- Restore UserPlaced while the frame is still temporarily movable.
-- Some Vanilla/Turtle frames (notably MinimapCluster) reject
-- SetUserPlaced() after SetMovable(false), which caused repeated
-- "not movable or resizable" errors when releasing Ctrl+Shift.
if not target.cursorDrag
and not state.dragged
and state.userPlaced ~= nil
and moveFrame.SetUserPlaced then
moveFrame:SetUserPlaced(state.userPlaced)
end
if not target.cursorDrag and state.movable ~= nil then
moveFrame:SetMovable(state.movable)
end
end
if handle then