Skip to content

Electron app loses its snapped state when restored from minimized in Windows 11 #48122

@arshcaria

Description

@arshcaria

Preflight Checklist

Electron Version

37.1.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 Pro, version 24H2, OS build 26100

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

  1. Snap the Electron app window to one side of the screen.
  2. Minimize the window.
  3. Restore it from the taskbar.
  4. The Electron window should stay snapped after being restored. (On Windows 11, snapped windows have sharp corners on all four edges.)

Actual Behavior

When restoring the Electron window, the snapped state is lost. On Windows 11, the window corners change from sharp (snapped) to rounded (unsnapped).

Testcase Gist URL

default fiddle app

Additional Information

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions