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

xdg: Add getters for pending configures and current state serial #1617

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

YaLTeR
Copy link
Contributor

@YaLTeR YaLTeR commented Dec 21, 2024

The pending configures are useful for when you need to check the state that you sent to the client, but that it hadn't acknowledged yet, along with their serials. I only expose read access so that you can't mess with the internal commit tracking.

The serials in general (like the current state serial) are useful in case you want to synchronize something to surface commits. The case I have in niri is that I want to know if the surface had already committed the state that it had last acked, or not yet. Specifically, for the surface size, I want to differentiate between when the surface acked a new size and hasn't committed in response yet, and when the surface acked a new size but committed a different size in response.

Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

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

LGTM

@Drakulix Drakulix merged commit 2eddf12 into Smithay:master Dec 23, 2024
13 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