mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-25 19:07:17 -06:00
eframe shrinks the start size to the monitor's, but not by the frame, the title bar or the taskbar, and Windows places a new window away from the screen's corner. On a laptop screen the first window's bottom, with the end of the scroll bar, sat under the taskbar or past the screen's edge, so a drag of the scroll bar stopped where the pointer met the edge. The window was saved that size and opened so again on every launch. On the frame that first knows the monitor, a window that doesn't fit with 48 pt to spare on each side (WindowGeometry::fit_on_monitor) gets a smaller size, never below the minimum, and is centred. A window the system placed counts its position too; a restored one, maybe on another monitor, only its size. Maximized, full-screen and minimized windows are left alone. Checked on Windows with no saved settings: the window now opens wholly on screen. Closes #1215 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>