From de574ac0988758ff0632a315bf11ddeb485355a9 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 1 Aug 2024 15:24:20 +0300 Subject: [PATCH] output-power-management: send zwlr_output_power_v1.failed on output destroy From the event description: This event indicates that the output power management mode control is no longer valid. This can happen for a number of reasons, including: <...> - The output disappeared --- types/wlr_output_power_management_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_output_power_management_v1.c b/types/wlr_output_power_management_v1.c index 763d0d6af..96e0b6028 100644 --- a/types/wlr_output_power_management_v1.c +++ b/types/wlr_output_power_management_v1.c @@ -46,6 +46,7 @@ static void output_power_handle_output_destroy(struct wl_listener *listener, void *data) { struct wlr_output_power_v1 *output_power = wl_container_of(listener, output_power, output_destroy_listener); + zwlr_output_power_v1_send_failed(output_power->resource); output_power_destroy(output_power); }