Skip to content

gamma-control: Read ramps using pread

Kenny Levinsen requested to merge kennylevinsen/wlroots:gamma-pread into master

read advances the file description offset, and requires the client to ensure that it is reset appropriately before the next gamma ramp submission. As there is no event to indicate that wlroots finished processing the new gamma ramp, this can result in a race between the client seeking in the file and wlroots reading its content.

Use pread with a fixed offset instead.

Fixes: #3655 (closed)

Merge request reports