Skip to content

frontend: Fix wrong dock sizes at startup#13381

Open
Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Warchamp7:stats-dock-size-problems
Open

frontend: Fix wrong dock sizes at startup#13381
Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Warchamp7:stats-dock-size-problems

Conversation

@Warchamp7
Copy link
Copy Markdown
Member

Description

Fixes docks being the wrong size during startup if OBS was maximized.

This appears to be some consequence of docks being added dynamically to the main window and restoring the window state when it was saved as maximized.

As such, this only seems to happen when you have the stats dock enabled or you have a browser dock. Closing OBS when it's maximized will result in the docks being different sizes next startup.

Appears to be https://qt-project.atlassian.net/browse/QTBUG-46620 and this PR implements a version of the fix noted in the comments there.

Motivation and Context

Fixes #13278

How Has This Been Tested?

Closed and opened OBS multiple times after setting the stats dock and some browser docks to various sizes and confirmed it was the same next launch.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@Warchamp7 Warchamp7 added the Bug Fix Non-breaking change which fixes an issue label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Non-breaking change which fixes an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OBS Dock size issue

1 participant