diff options
author | Simon Ser <contact@emersion.fr> | 2023-03-06 11:37:32 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-03-06 11:40:48 +0100 |
commit | 9108717d5de369351552cc99e348ba393e6f915f (patch) | |
tree | 676a180ed304a8dde57e1dd953b0dc8c6a888ff9 /util/addon.c | |
parent | 3a200aa279393f603a7d335975a50f4719110f2a (diff) |
gamma-control-v1: fix handling of duplicate control
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: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3605
Diffstat (limited to 'util/addon.c')
0 files changed, 0 insertions, 0 deletions