mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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
(cherry picked from commit de574ac098)
This commit is contained in:
parent
6cc80472cb
commit
81a08aeeb0
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue