gamma-control-v1: allow compositors to apply gamma LUTs
The current implementation is a bit clunky: it stashes the updated gamma LUTs in wlr_output.pending
, and hopes the compositor won't call wlr_output_rollback()
until the next frame. Additionally, it doesn't work when the compositor uses wlr_output_commit_state()
.
Allow compositors to handle set_gamma
requests coming from clients, and have their own logic to apply them.
Sway patch: https://github.com/swaywm/sway/pull/7494