diff options
author | Erik Reider <[email protected]> | 2024-05-08 11:32:31 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-08 11:32:31 +0200 |
commit | 2ec3505248e819191c37cb831197629f373326fb (patch) | |
tree | 4855e083f7239bcb98be05e2fcb141917eabb74e /types/scene | |
parent | 1cdb05e9d0256f6b8942a7436b539ad87fbcf366 (diff) |
Updated scene and renderer fixes from wlroots 0.17.3 (#48)
Diffstat (limited to 'types/scene')
-rw-r--r-- | types/scene/wlr_scene.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 2f887e1..753803e 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1432,6 +1432,11 @@ static void scene_output_handle_commit(struct wl_listener *listener, void *data) WLR_OUTPUT_STATE_ENABLED)) { scene_output_update_geometry(scene_output, force_update); } + + if (scene_output->scene->debug_damage_option == WLR_SCENE_DEBUG_DAMAGE_HIGHLIGHT && + !wl_list_empty(&scene_output->damage_highlight_regions)) { + wlr_output_schedule_frame(scene_output->output); + } } static void scene_output_handle_damage(struct wl_listener *listener, void *data) { @@ -2046,11 +2051,6 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, wlr_buffer_unlock(buffer); output_state_apply_damage(&render_data, state); - if (debug_damage == WLR_SCENE_DEBUG_DAMAGE_HIGHLIGHT && - !wl_list_empty(&scene_output->damage_highlight_regions)) { - wlr_output_schedule_frame(scene_output->output); - } - return true; } |