mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 14:55:30 +01:00
Surround render call by tenter/tleave
This commit is contained in:
parent
31027cbaad
commit
ef3944421b
1 changed files with 3 additions and 2 deletions
5
render.c
5
render.c
|
@ -20,9 +20,10 @@ render_job(void* data)
|
||||||
girara_list_remove(render_thread->list, page);
|
girara_list_remove(render_thread->list, page);
|
||||||
g_mutex_unlock(render_thread->lock);
|
g_mutex_unlock(render_thread->lock);
|
||||||
|
|
||||||
printf("Rendered %d\n", page->number);
|
gdk_threads_enter();
|
||||||
|
|
||||||
render(page);
|
render(page);
|
||||||
|
printf("Rendered %d\n", page->number);
|
||||||
|
gdk_threads_leave();
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue