Fix screen freeze in some cases

Partially fixes #94
This commit is contained in:
Jona Ackerschott 2020-06-14 23:00:21 +02:00 committed by Sebastian Ramacher
parent 2ec99e9f9e
commit edea6a5403

View File

@ -200,6 +200,7 @@ zathura_update_view_ppi(zathura_t* zathura)
if (fabs(ppi - current_ppi) > DBL_EPSILON) {
girara_debug("monitor width: %d mm, pixels: %d, ppi: %0.2f", width_mm, monitor_geom.width, ppi);
zathura_document_set_viewport_ppi(zathura->document, ppi);
adjust_view(zathura);
render_all(zathura);
refresh_view(zathura);
}