re-adds wlr_output_update_enabled

Re-add the wlr_output_update_enabled to make sure
wlr_output::events.enable is called when the output enabled state
changes.
This commit is contained in:
Markus Ongyerth 2018-01-24 10:23:48 +01:00
parent 3cf7225cec
commit f946c10cb1
7 changed files with 18 additions and 9 deletions

View file

@ -134,6 +134,15 @@ void wlr_output_destroy_global(struct wlr_output *output) {
output->wl_global = NULL;
}
void wlr_output_update_enabled(struct wlr_output *output, bool enabled) {
if (output->enabled == enabled) {
return;
}
output->enabled = enabled;
wl_signal_emit(&output->events.enable, output);
}
static void wlr_output_update_matrix(struct wlr_output *output) {
wlr_matrix_texture(output->transform_matrix, output->width, output->height,
output->transform);