aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-09-06 22:22:40 +0200
committeremersion <contact@emersion.fr>2017-09-06 22:22:40 +0200
commit7d43d662f5cb54c13cbc4c791d97bfee30c10124 (patch)
tree56634ac125808cc53f3de76950a7a480b96095d9
parent6f98b5a33762f7d36bccf4902b52d8e70f71e9ca (diff)
Fix gamma_size event sent to wrong resource
-rw-r--r--types/wlr_gamma_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_gamma_control.c b/types/wlr_gamma_control.c
index d140259e..c654cc21 100644
--- a/types/wlr_gamma_control.c
+++ b/types/wlr_gamma_control.c
@@ -58,7 +58,7 @@ static void gamma_control_manager_get_gamma_control(struct wl_client *client,
wlr_log(L_DEBUG, "new gamma_control %p (res %p)", gamma_control, gamma_control->resource);
wl_resource_set_implementation(gamma_control->resource,
&gamma_control_implementation, gamma_control, gamma_control_destroy);
- gamma_control_send_gamma_size(_gamma_control_manager, wlr_output_get_gamma_size(output));
+ gamma_control_send_gamma_size(gamma_control->resource, wlr_output_get_gamma_size(output));
}
static struct gamma_control_manager_interface gamma_control_manager_impl = {