Skip to content

Sync with core 8d4a4f2 (fix Windows fullscreen/maximized resize border & normal title bar shadow) - #69

Merged
lijy91 merged 1 commit into
mainfrom
fix/windows-geometry-and-shadow
Dec 1, 2026
Merged

lijy91 merged 1 commit into
mainfrom
fix/windows-geometry-and-shadow

Conversation

@lijy91

@lijy91 lijy91 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Summary

Syncs core with libnativeapi/nativeapi-core#109 (8d4a4f2):

  1. Restore Windows frame before explicit geometry changes (SetSize, SetContentSize, SetBounds, SetContentBounds, SetPosition):
    • Exits fullscreen (g_full_screen_windows) and/or unmaximizes (IsZoomed) to a normal framed placement before applying explicit size/position changes, preventing borderless (0, 0) fullscreen leftovers or stuck WS_MAXIMIZE / (-padded_border) borders that previously required dragging the window to recover.
  2. Preserve DWM non-client frame on system-decorated (TitleBarStyle::Normal) windows when SetHasShadow(false) is called:
    • Keeps DWMNCRP_USEWINDOWSTYLE active whenever TitleBarStyle::Normal so disabling shadow on a system-decorated window does not degrade its title bar and border to the classic Windows 7 / Aero Basic theme, while still recording HasShadow() == false so switching to TitleBarStyle::Hidden drops the frame and shadow as expected.

@lijy91
lijy91 merged commit ee98a86 into main Dec 1, 2026
31 checks passed
@lijy91
lijy91 deleted the fix/windows-geometry-and-shadow branch December 1, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant