gamma lut reset when display dpms is toggled for the first time in a session
Reproduction steps
- start sway
- run
wlsunset -T 4001
so it applies gamma swaymsg "output * off"
swaymsg "output * on"
After these steps, the gamma lut is not applied anymore and you have to exit wlsunset then start it again for it to be applied. This only happens on the first output off/on cycle.
Notes
This doesn't happen if you do 1 -> 3 -> 4 -> 2 -> 3 -> 4.
Tested on sway and Hyprland, happens on both.
Doesn't happen on wlroots at 1bf245e0 and sway at https://github.com/swaywm/sway/commit/913a7679cbde98df0722b326d8c3cfc0f0576f6d
This also doesn't happen with sway at https://github.com/swaywm/sway/commit/b1b3563d5483482e19616aec0e70de970a591580 and wlroots at ec9b79ef, which leads me to think wlroots in 36376e2d was doing something that sway doesn't do in its commit sequence anymore.
Edited by llyyr