fix overlay titlebar height mismatch (22→24px) so close button receives clicks, re-sync ratio on resize

This commit is contained in:
2026-05-29 16:32:39 +03:00
parent f1e5c5f3db
commit e150314a43
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -36,6 +36,8 @@
win.onResized(async () => {
if (enforcing) return
await updateSize()
// Re-sync ratio from Rust in case it changed (e.g. preset clicked)
await syncRatio()
if (lockedRatio === null) return
// Small debounce to break the SetWindowPos → onResized loop
if (resizeDebounce !== null) clearTimeout(resizeDebounce)