fix vfr frame scheduling

This commit is contained in:
vaxerski 2022-07-04 17:55:33 +02:00
parent 7e38de37a7
commit beef23cee5

View file

@ -555,6 +555,11 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y) {
pixman_region32_init(&damageBox); pixman_region32_init(&damageBox);
wlr_surface_get_effective_damage(pSurface, &damageBox); wlr_surface_get_effective_damage(pSurface, &damageBox);
// schedule frame events
if (!wl_list_empty(&pSurface->current.frame_callback_list)) {
wlr_output_schedule_frame(g_pCompositor->getMonitorFromVector(Vector2D(x, y))->output);
}
if (!pixman_region32_not_empty(&damageBox)) { if (!pixman_region32_not_empty(&damageBox)) {
pixman_region32_fini(&damageBox); pixman_region32_fini(&damageBox);
return; return;