Repository navigation
gtk3-module: Apply Cinnamon's dialogs-use-header on Wayland - #224
Open
SyberHexen wants to merge 1 commit into
Open
SyberHexen wants to merge 1 commit into
SyberHexen wants to merge 1 commit into
Conversation
On X11, cinnamon-settings-daemon gives applications Cinnamon's dialogs-use-header setting (dialog buttons at the bottom by default) through XSettings. GTK's Wayland backend has no XSettings and supplies gtk-dialogs-use-header itself, as TRUE, over settings.ini, so on Wayland every GTK 3 dialog got a header bar. Only a value the application sets outranks the backend: in Cinnamon on Wayland, the module sets Cinnamon's value in each application and follows its changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Bug: in a Cinnamon Wayland session every GTK 3 dialog (file chooser, Save As, message dialogs) gets a header bar with the buttons at the top, although Cinnamon's
dialogs-use-headersetting is false. On X11 cinnamon-settings-daemon passes that setting to applications through XSettings; GTK's Wayland backend has no XSettings and suppliesgtk-dialogs-use-headeritself, as TRUE.settings.inican't override it, because the backend's value outranks it; only a value the application sets does.Reproduce: Cinnamon Wayland session, any GTK 3 app, File → Open: the dialog has a header bar with Cancel/Open at the top. In the X11 session the same dialog has its buttons at the bottom. A quick check from Python:
prints
Trueon Wayland (andFalsewithGDK_BACKEND=x11), withorg.cinnamon.settings-daemon.plugins.xsettings dialogs-use-headerset to false.Fix: the XApp GTK 3 module, which Cinnamon sessions already load into every GTK 3 application, sets Cinnamon's
dialogs-use-headervalue on the application'sGtkSettingswhen the display is Wayland, and follows changes to the setting. X11 is unchanged (XSettings keep handling it). It only acts when the cinnamon xsettings schema and key exist.Tested: Cinnamon Wayland session:
gtk-dialogs-use-headeris False and a GtkFileChooserDialog has no header bar (before: True, header bar); toggling the setting in Cinnamon is followed by running apps; X11 session unchanged.