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

output: add presented flag to presentation event #3245

Merged
merged 3 commits into from
Oct 15, 2021

Conversation

vyivel
Copy link

@vyivel vyivel commented Oct 8, 2021

See individual commits.


This is breaking change for custom backend users: wlr_output_send_present() doesn't accept NULL events anymore, and events must have their newly introduced presented flag set.

@vyivel
Copy link
Author

vyivel commented Oct 13, 2021

Alternatively, wlr_output_send_discard() could be introduced instead of changing wlr_output_send_present().

@emersion emersion added breaking Breaking change in public API and removed breaking Breaking change in public API labels Oct 15, 2021
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.

LGTM, thanks!

I was wondering whether this was a breaking change, but it doesn't seem like it. The present events are fired the same way as before, this PR just introduces a new field.

@emersion emersion merged commit 2edf468 into swaywm:master Oct 15, 2021
@vyivel vyivel deleted the output-discard branch October 15, 2021 07:56
@vyivel vyivel mentioned this pull request Oct 15, 2021
@emersion emersion added the breaking Breaking change in public API label Oct 15, 2021
emersion added a commit to swaywm/sway that referenced this pull request Oct 15, 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.

None yet

2 participants