Repository navigation
Conversation
This ensures that if the DPI across screens is different, the browsers and their containers are intentionally resized correctly.
WizardCM
commented
Nov 30, 2026
Comment on lines
+188
to
+189
| connect(window, &QWindow::screenChanged, this, | ||
| [this]() { QCoreApplication::postEvent(this, new QResizeEvent(size(), size())); }); |
Member
Author
There was a problem hiding this comment.
Debating moving this out of the macOS check, tying it to this instead of window.
Need more insight from a macOS user with multiple displays first.
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.
Description
This ensures that if the DPI across screens is different, the browsers and their containers are intentionally resized correctly.
This is the "simplest" solution, rather than digging up DPI changed events that may or may not be reliable.
Before (not 100% of the time, but often enough):
After
Initially I tried just calling
Resize()but that only resized the wrapper and not both, which ended up behaving incorrectly.Motivation and Context
Fixes obsproject/obs-studio#14276
How Has This Been Tested?
Built and run on Windows 10 where the main display's DPI is 125% and other displays are 100%. Drag the window quickly between them.
Types of changes
Checklist: