diff options
| author | Alexander Orzechowski <[email protected]> | 2022-05-20 18:31:41 -0400 | 
|---|---|---|
| committer | Alexander Orzechowski <[email protected]> | 2022-05-23 15:43:18 -0400 | 
| commit | ea5413394d981ad3cc3e46e26784d2a36f94daa4 (patch) | |
| tree | 97ab599859e2a7941050a49c4f4f898320c20b84 /wlr_scene.c | |
| parent | 4eb610b627cb3063785883f89b432b8d95be4be9 (diff) | |
wlr_scene: Hook up RERENDER logic
Diffstat (limited to 'wlr_scene.c')
| -rw-r--r-- | wlr_scene.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/wlr_scene.c b/wlr_scene.c index 4241a57..6f0591b 100644 --- a/wlr_scene.c +++ b/wlr_scene.c @@ -1104,6 +1104,8 @@ static bool scene_output_scanout(struct wlr_scene_output *scene_output) {  bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {  	struct wlr_output *output = scene_output->output; +	enum wlr_scene_debug_damage_option debug_damage = +		scene_output->scene->debug_damage_option;  	struct wlr_renderer *renderer = output->renderer;  	assert(renderer != NULL); @@ -1120,6 +1122,10 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {  		return true;  	} +	if (debug_damage == WLR_SCENE_DEBUG_DAMAGE_RERENDER) { +		wlr_output_damage_add_whole(scene_output->damage); +	} +  	bool needs_frame;  	pixman_region32_t damage;  	pixman_region32_init(&damage); | 
