mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Restoring a stale window position (e.g. from a disconnected monitor) placed the window off-screen with no way to see it. Before applying the saved position, check that the rect is reachable on some monitor reported by availableMonitors(): at least 100px of horizontal overlap and a grabbable title bar row. If not, keep the default centered placement. Also reject non-finite or non-positive saved dimensions. If monitors cannot be queried, restore proceeds unchanged. Fixes #124 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwtnpHAoSFr1ZibQgQkNQK