mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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.
This commit is contained in:
parent
7e990a6bdf
commit
f416efa918
2 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue