Skip to content

gamma-control-v1: fix handling of duplicate control

Simon Ser requested to merge emersion/wlroots:gamma-control-dup into master

When a new client comes in and tries to create a zwlr_gamma_control_v1 object for an output which already has one, we were destroying the old object and early-returning. The early return causes the new object to not be set up properly: it's not inserted in the list and doesn't get the gamma_size event.

Fix this by destroying the new object, and leave the old object intact, which is what was the intent I think.

Closes: #3605 (closed)

Merge request reports