Skip to content

Fix delayed staged dock - #2569

Merged
vanvugt merged 9 commits into
ubuntu:masterfrom
3v1n0:fix-delayed-staged-dock
Apr 15, 2026
Merged

vanvugt merged 9 commits into
ubuntu:masterfrom
3v1n0:fix-delayed-staged-dock

Conversation

@3v1n0

@3v1n0 3v1n0 commented Apr 15, 2026 •

Copy link
Copy Markdown
Collaborator

See commits for details, but since 8aa70ef we may have a situation in which the dock is added to the stage later than its initialization, while various code may do operations that require the dock to be staged.

So delay all these actions until we're good to go

/cc @vanvugt

Fixes: #2565

3v1n0 added 2 commits April 15, 2026 02:29
This adjusts commit 8aa70ef, ensuring that also secondary monitors
docks are tracked, while we were potentially not tracking them anymore
in case the startup animation was not already ran
It's something we always do together, so there's no point of duplicating
it in multiple places
@3v1n0
3v1n0 force-pushed the fix-delayed-staged-dock branch 2 times, most recently from 8ebbf25 to ccd4d0f Compare April 15, 2026 00:49
3v1n0 added 6 commits April 15, 2026 03:32
This is something that should only happen only after the dock is staged
so let's ensure this is the case
We may otherwise end up doing operations that requires a staged actor
before than we can
If the actor is not visible we do not care about updating its style,
also this was causing problems since commit 8aa70ef, as now the dock
can be tracked (e.g. staged later), thus we do not want to set theming
data while the widget it's unmapped.
Each dock destroy signal handler removes the dock from the allDocks
array, but doing this while looping on it may lead to skipping elements
and it's not safe.

So loop over a snapshot instead.

Fixes: 13ca201
@3v1n0
3v1n0 force-pushed the fix-delayed-staged-dock branch from 57359f4 to 5d077e9 Compare April 15, 2026 01:32
@vanvugt

vanvugt commented Apr 15, 2026 •

Copy link
Copy Markdown
Collaborator

I feared this might happen, but what are the symptoms to look for?

Oh it's this.

@vanvugt

vanvugt commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Tested and confirmed it fixes the log spam.

The rest of the changes sound reasonable but I worry a little that with so many changes we may struggle to justify them to the release team in time for 26.04.

Side note: I wonder if it is now easier to fix LP#2035304...

@vanvugt
vanvugt merged commit ee0e2cc into ubuntu:master Apr 15, 2026
1 check passed
@3v1n0

3v1n0 commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator Author

Side note: I wonder if it is now easier to fix LP#2035304

Oh maybe this helps already? As we set the style before showing in theory...

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.

2 participants