mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
wlr_scene: Hook up RERENDER logic
This commit is contained in:
parent
17f5414b1a
commit
b6fc882782
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue