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

wl: Prefer SSD via zxdg_decoration_manager_v1 #700

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

aperezdc
Copy link
Member

@aperezdc aperezdc commented Mar 7, 2024

Ask compositors that support the zxdg_decoration_manager_v1_interface protocol to provide server-side decorations (SSD). This way it is more likely that the Cog surfaces will have window decorations. Note that compositors will still hide the decorations of fullscreen surfaces, but maximized ones will keep them, and this is the expected behaviour. Tested on Sway and Labwc, and should work in most (if not all) wlroots based compositors.

@aperezdc aperezdc added the enhancement New feature or request label Mar 7, 2024
@aperezdc aperezdc added this to the Cog 0.20 milestone Mar 7, 2024
@aperezdc aperezdc self-assigned this Mar 7, 2024
@aperezdc
Copy link
Member Author

aperezdc commented Mar 7, 2024

Screenshot, running under Labwc:

Screenshot of Cog running under Labwc, with window decorations

@aperezdc aperezdc force-pushed the aperezdc/wl-xdg-decoration branch from 9ee9e6b to 210440d Compare March 7, 2024 10:20
@aperezdc aperezdc force-pushed the aperezdc/wl-xdg-decoration branch from 210440d to 3bff030 Compare March 21, 2024 17:50
Ask compositors that support the zxdg_decoration_manager_v1_interface
protocol to provide server-side decorations (SSD). This way it is more
likely that the Cog surfaces will have window decorations. Note that
compositors will still hide the decorations of fullscreen surfaces,
but maximized ones will keep them, and this is the expected behaviour.
Tested on Sway and Labwc, and should work in most (if not all) wlroots
based compositors.
@aperezdc aperezdc force-pushed the aperezdc/wl-xdg-decoration branch from 3bff030 to ca4c600 Compare March 27, 2024 11:09
@aperezdc aperezdc enabled auto-merge (rebase) March 27, 2024 11:09
Copy link
Member

@psaavedra psaavedra left a comment

Choose a reason for hiding this comment

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

Not tested but as far I can see this looks good to me.

@aperezdc aperezdc merged commit d93a55a into master Mar 27, 2024
5 checks passed
@aperezdc aperezdc deleted the aperezdc/wl-xdg-decoration branch March 27, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants