mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:16:00 +01:00
Make sure there are no outstanding requests if the page size gets changed
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
6ae3a7eab8
commit
2c76fde31f
1 changed files with 4 additions and 1 deletions
|
@ -608,7 +608,10 @@ static void
|
||||||
zathura_page_widget_size_allocate(GtkWidget* widget, GdkRectangle* allocation)
|
zathura_page_widget_size_allocate(GtkWidget* widget, GdkRectangle* allocation)
|
||||||
{
|
{
|
||||||
GTK_WIDGET_CLASS(zathura_page_widget_parent_class)->size_allocate(widget, allocation);
|
GTK_WIDGET_CLASS(zathura_page_widget_parent_class)->size_allocate(widget, allocation);
|
||||||
zathura_page_widget_update_surface(ZATHURA_PAGE(widget), NULL);
|
|
||||||
|
ZathuraPage* page = ZATHURA_PAGE(widget);
|
||||||
|
zathura_page_widget_abort_render_request(page);
|
||||||
|
zathura_page_widget_update_surface(page, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue