diff options
| author | Alexander Orzechowski <alex@ozal.ski> | 2023-11-15 18:42:12 -0500 |
|---|---|---|
| committer | Alexander Orzechowski <alex@ozal.ski> | 2023-11-15 18:42:12 -0500 |
| commit | 50446fe75e07b986b0e62fe8236ede84b5a31163 (patch) | |
| tree | c6726d9fa8d103aa44337c736e0324ec891ed161 | |
| parent | 889c5ed5ff120053c8a6d96e08e81c2a5f01c523 (diff) | |
| download | wlroots-50446fe75e07b986b0e62fe8236ede84b5a31163.tar.xz | |
wlr_scene: Update outputs when primary output is changed
Helpers care about the primary output. They need to know when it changes
even if intersection status has not changed necessarily.
| -rw-r--r-- | types/scene/wlr_scene.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index cd3094be..0bf3c308 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -415,7 +415,9 @@ static void update_node_update_outputs(struct wlr_scene_node *node, assert(!scene_buffer->active_outputs || scene_buffer->primary_output); // Skip output update event if nothing was updated - if (old_active == active_outputs && (!force || ((1ull << force->index) & ~active_outputs))) { + if (old_active == active_outputs && + (!force || ((1ull << force->index) & ~active_outputs)) && + old_primary_output == scene_buffer->primary_output) { return; } |
