mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 10:45:59 +01:00
Don't render if the new surface passed to zathura_page_widget_update_surface is NULL.
I don't see any reason for queueing a redraw if the new surface is NULL. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
9c1503809a
commit
e7cbd25be0
1 changed files with 3 additions and 1 deletions
|
@ -498,7 +498,9 @@ zathura_page_widget_update_surface(ZathuraPage* widget, cairo_surface_t* surface
|
||||||
priv->surface = surface;
|
priv->surface = surface;
|
||||||
mutex_unlock(&(priv->lock));
|
mutex_unlock(&(priv->lock));
|
||||||
/* force a redraw here */
|
/* force a redraw here */
|
||||||
zathura_page_widget_redraw_canvas(widget);
|
if (priv->surface != NULL) {
|
||||||
|
zathura_page_widget_redraw_canvas(widget);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue