Skip to content

fix: adjust window size in NCCALCSIZE instead of adding insets - #19883

Merged
zcbenz merged 1 commit into
masterfrom
brenca/frameless-window-insets-fix
Aug 26, 2019
Merged

zcbenz merged 1 commit into
masterfrom
brenca/frameless-window-insets-fix

Conversation

@brenca

@brenca brenca commented Aug 22, 2019 •

Copy link
Copy Markdown
Contributor

Description of Change

Instead of adding a border to the root view to compensate for the behavior of Windows (expanding a frameless window beyond the size of the monitor to compensate for a non-existing border), this PR adjusts the window area reported to Windows.

The solution with the added border was working OK-ish, except when you changed from a maximized state to fullscreen, which didn't remove the insets. Sadly setting the insets requires a re-layout, which lags behind the Windows native events, and would cause the border to show up momentarily.

Fixes #19481.

Checklist

Release Notes

Notes: Fixed a bug where sometimes a ~10px white border would be added to fullscreen windows on Windows.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 22, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Aug 23, 2019
@zcbenz
zcbenz merged commit f6c523d into master Aug 26, 2019
@release-clerk

release-clerk Bot commented Aug 26, 2019

Copy link
Copy Markdown

Release Notes Persisted

Fixed a bug where sometimes a ~10px white border would be added to fullscreen windows on Windows.

@zcbenz
zcbenz deleted the brenca/frameless-window-insets-fix branch August 26, 2019 01:04
@trop

trop Bot commented Aug 26, 2019

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "6-0-x" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Aug 26, 2019

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "7-0-x", please check out #19942

@trop

trop Bot commented Aug 26, 2019

Copy link
Copy Markdown
Contributor

A maintainer has manually backported this PR to "6-0-x", please check out #19944

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.

Frameless window does not enter fullscreen correctly from maximized

2 participants