aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2022-11-26 20:59:44 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-11-29 07:43:39 +0000
commitfe21fc6920cc272292a77b46adc79e5db1e21abc (patch)
treeb4fac8b15564b5ef31934164b8a60fba57606432
parent5477ad7d9079c59d64fed9acb98ccccebc24af93 (diff)
wlr_scene: Don't cull the entire output when entering direct scanout
We don't need to.
-rw-r--r--types/scene/wlr_scene.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 5b050da0..5d1b8066 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -1504,8 +1504,10 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
scene_output->prev_scanout = scanout;
wlr_log(WLR_DEBUG, "Direct scan-out %s",
scanout ? "enabled" : "disabled");
- // When exiting direct scan-out, damage everything
- wlr_damage_ring_add_whole(&scene_output->damage_ring);
+ if (!scanout) {
+ // When exiting direct scan-out, damage everything
+ wlr_damage_ring_add_whole(&scene_output->damage_ring);
+ }
}
if (scanout) {