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

Set default decoration mode when it is adjusted at runtime #2400

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

wb9688
Copy link
Contributor

@wb9688 wb9688 commented Jul 21, 2024

This calls wlr_server_decoration_manager_set_default_mode again when the setting core/preferred_decoration_mode in wayfire.ini is updated during runtime.

I figured out why it didn't work before and tried to implement that, but couldn't do that with valid C++ syntax due to my lack of C++ knowledge, so @soreau made the patch with proper C++ syntax, which is why I added him as co-author to the commit.

I tested this PR and it works completely as expected. Only with this PR, you will notice a bug in GTK, which I submitted a MR for at https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7475

@wb9688 wb9688 force-pushed the dynamic-deco-mode branch from 89f2a72 to 2d62344 Compare July 21, 2024 15:17
@wb9688
Copy link
Contributor Author

wb9688 commented Jul 21, 2024

By the way it should be possible to make existing windows switch decorations as well, by sending them all a mode event, which a client can deny by sending a request_mode request back and the compositor then has to acknowledge that using a mode event, but I really doubt that there are many clients properly implementing that, so I haven't bothered for now.

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ammen99 ammen99 merged commit cb2fc81 into WayfireWM:master Jul 27, 2024
3 of 4 checks passed
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