fix: center is pure one-shot (no centerLocked); resize no longer snaps to center

This commit is contained in:
Hermes Agent committed 2026-09-10 17:40:14 +02:00
1 parent 153ff2ae27
commit bb0b01cabc
2 files changed
+3 -16

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ function Plugin () {
emit('RESIZE_WINDOW', { width: w, height: h })
// If resize pulled the window out of dock — stop holding dock state (so polling
// does not re-pin and RESIZE_WINDOW does not re-dock). A normal (non-dock) resize
// holds centerLocked/dock itself via applyDock in main.
// holds the dock state itself via applyDock in main.
if (exitingDockRef.current) {
exitingDockRef.current = false
dockedPosRef.current = null