Merge pull request #1271 from emersion/gamma-control-destroy

gamma-control-v1: add missing destroy handler
This commit is contained in:
emersion 2018-09-30 09:45:52 +02:00 committed by GitHub
commit 890bbd7b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -189,9 +189,15 @@ static void gamma_control_manager_get_gamma_control(struct wl_client *client,
wlr_output_get_gamma_size(output)); wlr_output_get_gamma_size(output));
} }
static void gamma_control_manager_destroy(struct wl_client *client,
struct wl_resource *manager_resource) {
wl_resource_destroy(manager_resource);
}
static const struct zwlr_gamma_control_manager_v1_interface static const struct zwlr_gamma_control_manager_v1_interface
gamma_control_manager_impl = { gamma_control_manager_impl = {
.get_gamma_control = gamma_control_manager_get_gamma_control, .get_gamma_control = gamma_control_manager_get_gamma_control,
.destroy = gamma_control_manager_destroy,
}; };
static void gamma_control_manager_handle_resource_destroy( static void gamma_control_manager_handle_resource_destroy(