windows: Fix maximized window size when DPI scale changes#40053
Merged
reflectronic merged 1 commit intozed-industries:mainfrom Nov 20, 2025
Merged
windows: Fix maximized window size when DPI scale changes#40053reflectronic merged 1 commit intozed-industries:mainfrom
reflectronic merged 1 commit intozed-industries:mainfrom
Conversation
The WM_DPICHANGED suggested RECT is calculated for non-maximized windows. When a maximized window's DPI changes, we now query the monitor's work area directly to ensure the window correctly fills the entire screen. For non-maximized windows, the original behavior using the system-suggested RECT is preserved. Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
reflectronic
approved these changes
Nov 20, 2025
Member
reflectronic
left a comment
There was a problem hiding this comment.
Apologies for the delay. This patch appears to work for me. I am not quite convinced it's the right solution--I haven't seen other applications implementing a similar workaround. I think we are doing something wrong with our borderless window handling, and this patch is just working around those issues. But this seems like a fine change to have until that is fully investigated.
mikayla-maki
pushed a commit
that referenced
this pull request
Nov 20, 2025
The WM_DPICHANGED suggested RECT is calculated for non-maximized windows. When a maximized window's DPI changes, we now query the monitor's work area directly to ensure the window correctly fills the entire screen. For non-maximized windows, the original behavior using the system-suggested RECT is preserved. Release Notes: - windows: Fixed maximized window size when DPI scale changes Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
11happy
pushed a commit
to 11happy/zed
that referenced
this pull request
Dec 1, 2025
…ries#40053) The WM_DPICHANGED suggested RECT is calculated for non-maximized windows. When a maximized window's DPI changes, we now query the monitor's work area directly to ensure the window correctly fills the entire screen. For non-maximized windows, the original behavior using the system-suggested RECT is preserved. Release Notes: - windows: Fixed maximized window size when DPI scale changes Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The WM_DPICHANGED suggested RECT is calculated for non-maximized windows. When a maximized window's DPI changes, we now query the monitor's work area directly to ensure the window correctly fills the entire screen.
For non-maximized windows, the original behavior using the system-suggested RECT is preserved.
Release Notes: