Description
My report in #3740 was closed without waiting for human review, even after the comments suggested that's what should happen next. It's possible that exact bug is fixed, but even in trying to test it things are still going sideways with the dock layouts.
I've now rebuild and installed (now at version 1.0.1beta.20261118.r54.gd8f5045-1 so d8f5045 compiled via the AUR VCS package) and the situation is much worse.
First, when I opened OBS had no docks at all. None. Not only did it not remember my layout but the layout was all gone. Only the preview/program panes were still around.
Then I started enabling docks from the view menu, but they didn't seem to have any remembered locations at all, so I figured something changed about how docks were being saved in user preferences at all. So I used the "reset docks" option to just blow them away and hopefully get a clean slate. Well it did get me a clean slate with default dock positions. But now I'm stuck there. None of the docks could be moved.
I am aware of the 'lock docks' setting in the view menu, but that was not checked, and no amount of checking and unchecking it seemed to have any effect.
I ended up blowing away the OBS settings directory entirely, then importing my profile(s) and scene collection(s). Thankfully I had those separately saved.
Now I seem to be able to layout docks and for the moment they are coming back when I restart. I'll report if I can duplicate the same behavior again, but something is amiss with using old settings in a current build. If there was a known breakage that's fine. I don't always expect backwards compatibility during development cycles. But at the same time I've followed the PR merge history pretty closely and hadn't seen anything to suggest that updating might have been a problem.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
vpacher commentedon Nov 19, 2026
Thanks for the report, and sorry: this is a regression from my fix for #3740 (#4841). I can reproduce two of the three problems you describe.
#4841 puts the dock layout of the start back each time the window changes size, until you change a dock. It sees a change only when the window keeps its size. On a tiling window manager, a dock change and a window resize often come together (for example, a dock that you drag out of the window becomes a new window, and the compositor can retile). Then:
A Qt test shows both: a floated dock and a reset layout are undone when the window is resized at the same time. With the dock helper from before #4841, both tests pass. These tests run under Xvfb; I have not run them on Hyprland.
I cannot yet explain the first problem (no docks at all at the first start). Do you have a copy of the old
user.inior the log of that start? Either would help me find it.The fix I plan: OBS compares where the docks are (area, floating, hidden, tabs), not their sizes, so a change that comes with a resize stops the restore, and Reset Docks also stops it. I will open a PR with the tests, and leave this issue open until you confirm it on Hyprland.
vpacher commentedon Nov 19, 2026
Claiming: #5230 (the regression from my #4841, see my comment above).
Plan, one PR:
test_dock_state_restart: a dock floated while the window is resized stays floating, also after a restart; a Reset Docks while the window is resized stays, and is what quit saves. Both fail on master and pass with the helper from before frontend: restore the dock layout again when the window grows after the start (#3740) #4841.DockProportionscompares where the docks are (area, floating, hidden, tabs), not the saved bytes, before it restores the start layout, so a change that comes with a resize stops the restore. Reset Docks also stops it.The existing #3740 cases must still pass. I expect a draft PR today.
Refs #5230until it is confirmed on Hyprland.vpacher commentedon Nov 19, 2026
The fix is now on master (#5245). A dock change now counts as yours even when the window is resized at the same time, and Reset Docks stays reset. A quit then saves your layout, not the one from the start.
Can you check it on Hyprland with the next
obs-studio-rust-gitbuild? Please check these:If something still goes wrong, the steps (window state at the start, what you changed, then quit and start) let me turn it into a test. This issue stays open until you confirm it.
vpacher commentedon Nov 19, 2026
After #5245 I reviewed the whole dock layout code and found four more cases where a dock change is lost at quit or snaps back.
We inherited the plain Qt save and restore from upstream. Since then we added fixes on top of it, one case at a time (#2225, #3740, this issue). Some of those fixes made other cases worse.
So I will replace this logic with one clean model and test the known cases against it first. This issue stays open for that work.
vpacher commentedon Nov 20, 2026
Update to my claim: the decisions and the plan for the dock layout rewrite.
Rule: the saved layout changes only when you change it. A change of the window size (a resize, a maximize, a tiling window manager that retiles) never changes what is saved and never undoes your change.
Decisions:
BasicWindow/DockSizeskeeps the dock sizes you set, with a hash of theDockStatethey belong to.DockStatestays the normal Qt layout, so upstream OBS can still read a profile written by obs-rust. If upstream OBS writesDockStatein between, the hash does not match and obs-rust ignores the old sizes.There is no code for a specific window manager or platform. Each test case runs twice, under a scripted floating window manager and under a scripted tiling window manager, and both runs must save the same layout.
Plan, one PR at a time:
test_dock_state_restart, and tests that record what works today. Each unclear edge case gets a result: it works, it is a bug, or it needs a decision. I will post the result table here.obs-dock-layoutwith the layout model. It has no Qt and no platform code, so its tests run on all six CI targets. It is not used yet.DockProportions. Its RED tests are the four cases I found in the review (a dock change that is lost at quit or snaps back). After the start, the frontend never restores an old layout again, except for Reset Docks and the service layouts (Twitch, YouTube, Restream).CI now builds and runs the dock tests (#4837, fixed by #5265 and #5270). Before that, CI did not run them.
@alerque, your Hyprland check of #5245 is still useful. It tells me what the rewrite must keep.
alerque commentedon Nov 20, 2026
Nope failed hard again on this step.
After the debacle the other day I'd been using
1.0.1beta.20261118.r54.gd8f5045-1for a couple days including several recording sessions and restarts.Just now I built and installed
1.0.1beta.20261119.r51.gb3a32a9-1.I did as you said, opened up, moved one dock from it's home to floating, then quit. Then re-opened. No docks. All of them are disabled in the docks menu, and enabling them one by one obviously brings them "back" to default locations, not where I had them.
But by default locations I mean location only, not size. They are in the default dock order, but all squished and weird. After enabling them all again I used "reset ui" to get a sane starting point for moving them around again.
frontend: keep a dock change that comes with a window resize (obs-rus…
test: dock layout cases under a floating and a tiling window manager …
test: obs-dock-layout learns a side column at its minimum when the pr…
fix: obs-dock-layout learns a side column at its minimum when the pre…
test: obs-dock-layout model, RED against stubs (Refs #5230)
3 remaining items
test: lockfile fixtures use a package name no crate has (Refs #5323, #…
feat: frontend docks keep the sizes the user gave them, GREEN (Refs #…
vpacher commentedon Nov 21, 2026
The dock layout logic is now replaced on master (#5362, #5411). Your last build (b3a32a9) did not have this change yet. Related fixes: #5410 (quit with floating docks) and #5412 (macOS).
I tested master 224faff on Hyprland 0.56.2 (Omarchy), with the AUR
obs-rust-gitrecipe pinned to that commit, on a tiled workspace with native Wayland:On the same machine, some things do not work. Stock OBS 32.2.2 (Arch
obs-studio) does the same in each case, so they are not from obs-rust:xdg-toplevel-dragprotocol for this. KWin and Mutter have it, Hyprland does not. On Hyprland only a double-click floats a dock, and dragging a dock back in is unreliable.QT_QPA_PLATFORM=xcb): a floating dock never shows. Hyprland drops the map request for an X11 window that was first a child window and then moved to the root window, and Qt does that for a floating dock ([Bug]: XWayland windows created as child and later reparented to root are never registered or mapped hyprwm/Hyprland#16698). The dock is floating and enabled, but you cannot see it, and it stays like that after each restart.Two questions about your "no docks" result on b3a32a9:
Platform:line near the top of the log tells:WaylandorX11. Under XWayland, a floated dock goes invisible as described above.When you have a build at 224faff or newer, can you do the two steps above on your setup, and also your usual case: change the sizes of docked docks, quit, start again? Please tell me what you see. If something fails, please attach the log of that start and your
user.ini(the linesgeometry,DockStateandDockSizes).frontend: obs-dock-layout, the dock layout model (Refs obs-rust#5230) (…
frontend: docks keep the sizes the user gave them (Refs obs-rust#5230) (
KelboLive commentedon Dec 1, 2026
Claiming: #5230 — a code audit of current master leaves one real defect from the report: migration of a pre-rewrite dock state.
DockLayout::Save()can write the live layout before the firstStart(); duringOBSBasicconstruction every main dock is hidden (OBSBasic.cpp.hpp:361-368), so an earlysaveAll()writes an all-hiddenDockState. GuardSave()untilStart()has run.DockStatewritten before the dock-layout rewrite (noDockSizes,HasSizes()false) in which every default dock is hidden is loaded and rewritten forever. After a successfulLoad(), when!HasSizes()and no default dock is visible, reset to the default layout once and log why. A genuinely all-hidden layout that has matchingDockSizesmust keep working (e11_all_docks_hidden).RED tests in
test/cmocka/test_dock_state_restart.cppfor all three; one PR. The other reported symptoms are fixed on master (placement, sizes, Reset, Lock Docks).docs: record the dock layout migration in the features ledger (obs-ru…
frontend: avoid a temporary QList in the dock layout check (obs-rust#…
fixup: merge the two dock-reset branches (bugprone-branch-clone, obs-…
fix(frontend): migrate a pre-rewrite all-hidden dock state (obs-rust#…