wlroots
wlroots copied to clipboard
Atomic output updates
This would let us:
- Enable and disable multiple outputs without the fear of hitting the CRTC limit
- Test configurations before applying them
- Rollback if something fails
- More cool stuff
https://github.com/swaywm/wlr-protocols/pull/38#issuecomment-470472049
wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:
https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1640
API proposal:
- Make
wlr_output_set_*
functions double-buffered - Add
wlr_output_commit
to apply the pending state - Add
wlr_backend_commit
to apply the pending state for all outputs. Backends can choose not to implement this, in which case the function will fallback to callingwlr_output_commit
on each output - Add
wlr_output_test
to check if the pending state is valid without applying it - Deprecate non-atomic events (
enable
,mode
,scale
,transform
)
Items 1, 2 and 4 are now done.