Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WM: Init things that depend on GTK later #1622

Merged
merged 4 commits into from Apr 6, 2023

Conversation

davidmhewitt
Copy link
Member

Review with whitespace changes hidden.

In Mutter 44, Gala crashes on startup due to trying to initialize GTK before Gala is fully initialized. This is the same issue we have trying to start Gala in Wayland mode, but we will have it in Mutter 44 in X11 mode too.

If we manually initialize GTK and all of our GTK dependant things in a "later", we can delay the initialization of GTK until a point where the compositor is ready to accept connections from GTK.

This fixes the crashing issue with Mutter 44 in X11 mode. It may unblock Wayland too, but I haven't tested yet.

I've been testing this for a bit and haven't noticed any regressions yet, but it'll need some testing, especially around the functionality that has been moved into this block.

@davidmhewitt davidmhewitt requested a review from a team April 5, 2023 16:08
@tintou tintou enabled auto-merge (squash) April 6, 2023 08:42
@tintou tintou merged commit 8a57a86 into master Apr 6, 2023
4 checks passed
@tintou tintou deleted the davidmhewitt/init-gtk-in-later branch April 6, 2023 08:43
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.

None yet

2 participants