mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
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.
This commit is contained in:
parent
889c5ed5ff
commit
50446fe75e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue