From f416efa918702156fbc617bf32ca943c909e18ee Mon Sep 17 00:00:00 2001 From: Ilia Bozhinov Date: Tue, 18 Feb 2020 12:30:05 +0100 Subject: output-management: add current_configuration_dirty Previously, if the current configuration contains an output X which is destroyed, its head is automatically removed. If the compositor submits the new configuration after X was removed, the current output configuration is incorrectly detected to be the same as the previous one, and no done event is sent. To prevent this, we can just keep track of whether the current configuration is dirty, i.e whether we have sent a done event for it. --- include/wlr/types/wlr_output_management_v1.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output_management_v1.h b/include/wlr/types/wlr_output_management_v1.h index cc74b404..945d57f0 100644 --- a/include/wlr/types/wlr_output_management_v1.h +++ b/include/wlr/types/wlr_output_management_v1.h @@ -20,6 +20,7 @@ struct wlr_output_manager_v1 { struct wl_list heads; // wlr_output_head_v1::link uint32_t serial; + bool current_configuration_dirty; struct { /** -- cgit v1.2.3