Skip to content

Window Placement and Border Snaps #1811

@mike-ward

Description

@mike-ward

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:

  1. Open Markdown Edit (https://github.com/mike-ward/Markdown-Edit/releases/download/v1.3.2/MarkdownEditSetup.msi)
  2. Click and drag bottom window border to bottom edge of screen and release mouse
  3. Window will snap to top and bottom edges
  4. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions