From 5dc1d4671dd2ca3c1f0f09587c463fdbb542f0a4 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 3 Jul 2022 12:20:41 -0400 Subject: wlr_scene: Maintain damage highlight regions per output The logic doesn't support handling multiple outputs so let's not break the assumption and handle damages per output much like how damage_ring is done. --- include/wlr/types/wlr_scene.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 95f18f37..85d0f94e 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -93,7 +93,6 @@ struct wlr_scene { struct wl_listener presentation_destroy; enum wlr_scene_debug_damage_option debug_damage_option; - struct wl_list damage_highlight_regions; }; /** A scene-graph node displaying a single surface. */ @@ -178,6 +177,8 @@ struct wlr_scene_output { struct wl_listener output_mode; struct wl_listener output_damage; struct wl_listener output_needs_frame; + + struct wl_list damage_highlight_regions; }; /** A layer shell scene helper */ -- cgit v1.2.3