-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
In Windows 8.1 when one can size a window and as it gets near a screen edge, it snaps the window. Problem is, the window position is not "remembered" when the application is closed and reopened. It seems that window position is not captured whenever one of these "snap" operations occurs.
Steps to reproduce:
- Open Markdown Edit (https://github.com/mike-ward/Markdown-Edit/releases/download/v1.3.2/MarkdownEditSetup.msi)
- Click and drag bottom window border to bottom edge of screen and release mouse
- Window will snap to top and bottom edges
- Close program and reopen
Expected: Window should return to same position and size when it was closed.
Actual: Window opens at previous window and size before resizing (snapping) operation.
I've done some research on this issue and it appears to be a hard problem to solve. Something about GetWindowPlacement not receiving the correct coordinates.