mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
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:
parent
3cf7225cec
commit
f946c10cb1
7 changed files with 18 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue