mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
wlr_scene: Don't cull the entire output when entering direct scanout
We don't need to.
This commit is contained in:
parent
5477ad7d90
commit
fe21fc6920
1 changed files with 4 additions and 2 deletions
|
@ -1504,9 +1504,11 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
|
||||||
scene_output->prev_scanout = scanout;
|
scene_output->prev_scanout = scanout;
|
||||||
wlr_log(WLR_DEBUG, "Direct scan-out %s",
|
wlr_log(WLR_DEBUG, "Direct scan-out %s",
|
||||||
scanout ? "enabled" : "disabled");
|
scanout ? "enabled" : "disabled");
|
||||||
|
if (!scanout) {
|
||||||
// When exiting direct scan-out, damage everything
|
// When exiting direct scan-out, damage everything
|
||||||
wlr_damage_ring_add_whole(&scene_output->damage_ring);
|
wlr_damage_ring_add_whole(&scene_output->damage_ring);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (scanout) {
|
if (scanout) {
|
||||||
struct wlr_scene_node *node = list_data[0];
|
struct wlr_scene_node *node = list_data[0];
|
||||||
|
|
Loading…
Reference in a new issue