diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2020-02-18 12:30:05 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-19 11:40:23 +0100 |
commit | f416efa918702156fbc617bf32ca943c909e18ee (patch) | |
tree | f1c4b44788d128daf85338d71f72b3129525d5de /include/wlr | |
parent | 7e990a6bdf160cf6888719eb3148096ad00ace7e (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output_management_v1.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { /** |