mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
output: Use wlr_scene_output_needs_frame
This commit is contained in:
parent
6576b99c24
commit
5a3621460f
|
@ -266,8 +266,7 @@ static int output_repaint_timer_handler(void *data) {
|
||||||
|
|
||||||
struct wlr_output *wlr_output = output->wlr_output;
|
struct wlr_output *wlr_output = output->wlr_output;
|
||||||
struct wlr_scene_output *scene_output = output->scene_output;
|
struct wlr_scene_output *scene_output = output->scene_output;
|
||||||
if (!wlr_output->needs_frame && !output->gamma_lut_changed &&
|
if (!wlr_scene_output_needs_frame(scene_output)) {
|
||||||
!pixman_region32_not_empty(&scene_output->pending_commit_damage)) {
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue