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

Misc: Warn that WINDECO option does nothing on Wayland #1065

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

sonic2kk
Copy link
Owner

Yad allows you to specify a --decorated or --undecorated option for dialogs, which we control with WINDECO. However this flag has no effect on Wayland. This may be because Mutter, GNOME's Wayland compositor (Yad is a GTK3 tool), does not implement the xdg-decoration protocol at time of writing. KDE does, and window decorations can be toggled with a KWin rule and with a keyboard shortcut to "Toggle Window Titlebar and Frame" (it also disables shadows, like it does on X11). This seems to be a rabbit hole debate around server-side vs client-side decorations!

This PR adds a warning for this and updates the langfile strings to note this, as I don't see this being resolved anytime soon.

@sonic2kk
Copy link
Owner Author

Apparently, toggling window decorations requires a restart, because we only set it in createDefaultCfgs when we call prepareGUI. We could probably fix this to be honest, but for now, we'll note it requires a restart as well.

@sonic2kk sonic2kk merged commit a7e06e3 into master Mar 18, 2024
@sonic2kk sonic2kk deleted the windeco-wayland-warning branch March 18, 2024 23:35
sonic2kk added a commit that referenced this pull request Mar 27, 2024
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.

1 participant