Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

xdg-decoration: refactor configure/state flow #3228

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

vyivel
Copy link
Member

@vyivel vyivel commented Sep 30, 2021

Preliminary work for #3151.

This is a breaking change:

  • wlr_xdg_toplevel_decoration_v1.client_pending_mode has been renamed to wlr_xdg_toplevel_decoration_v1.requested_mode.
  • wlr_xdg_toplevel_decoration_v1.server_pending_mode has been renamed to wlr_xdg_toplevel_decoration_v1.scheduled_mode.
  • wlr_xdg_toplevel_decoration_v1.current_mode has been moved to wlr_xdg_toplevel_decoration_v1_state and is double-buffered.

For reviewers: toplevel_decoration_handle_surface_commit is now called on every commit. The logic should be correct, but I haven't tested all possible cases.

@vyivel vyivel force-pushed the xdg-decoration-refactor branch 3 times, most recently from 14cbf8f to 47c7a91 Compare October 2, 2021 09:07
@vyivel vyivel marked this pull request as ready for review October 2, 2021 09:27
@vyivel vyivel added the breaking Breaking change in public API label Oct 2, 2021
The same logic/motivation as xdg-toplevel.
@vyivel vyivel force-pushed the xdg-decoration-refactor branch from 47c7a91 to f465284 Compare October 2, 2021 21:41
@vyivel vyivel changed the title xdg-decoration: switch to current/pending flow xdg-decoration: refactor configure/state flow Oct 2, 2021
@vyivel vyivel requested review from ifreund and removed request for ifreund October 6, 2021 06:13
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

Looks good!

@bl4ckb0ne
Copy link
Contributor

LGTM, thanks!

@bl4ckb0ne bl4ckb0ne merged commit c3e5402 into swaywm:master Oct 7, 2021
@vyivel
Copy link
Member Author

vyivel commented Oct 7, 2021

Thanks for reviewing!

@vyivel vyivel deleted the xdg-decoration-refactor branch October 7, 2021 13:28
@vyivel vyivel mentioned this pull request Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking Breaking change in public API
Development

Successfully merging this pull request may close these issues.

3 participants