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

core: Wayland: Utilize Client Side Decorations when Server Side Decorations are not supported #1298

Open
2 of 3 tasks
RonaldZielaznicki opened this issue Nov 1, 2024 · 0 comments

Comments

@RonaldZielaznicki
Copy link
Contributor

RonaldZielaznicki commented Nov 1, 2024

As discussed in #1275, not all window managers support Server Side Decorations.

Work to be done

On Integrating LibDecor

As discussed here: LibDecor should be the default.

  • If LibDecor is not found, we use SSD.
  • If we can't use SSD, we throw an error

There are two cases where SSD won't be available:

  1. Compositor has not implemented zxdg_decoration_manager_v1_get_toplevel_decoration

    • Mutter, Weston, Gamescope, etc. etc.
  2. or when zxdg_decoration_manager_v1_get_toplevel_decoration is implemented, but the compositor signals CSD.

    • Even if we tell the compositor we prefer SSD, it can still use CSD.
    • Cosmic (at time of writing) is the only compositor I know of that does this. Even if they do add SSD support as they work through their Alpha, we should still support this case because it's what the protocol expects.
    • It'll tell us with a configure event. We should respect the mode specified during the event.
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

No branches or pull requests

1 participant