mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:03:48 +01:00
Lock the render thread while searching.
This is a temporary workaround because of issues in the poppler plugin. We really need to introduce locking in the poppler plugin and remove the render locks agains. Closes: #253
This commit is contained in:
parent
753a9f1781
commit
07fbbd514a
@ -363,7 +363,10 @@ cmd_search(girara_session_t* session, const char* input, girara_argument_t* argu
|
||||
GtkWidget* page_widget = zathura_page_get_widget(zathura, page);
|
||||
g_object_set(page_widget, "draw-links", FALSE, NULL);
|
||||
|
||||
render_lock(zathura->sync.render_thread);
|
||||
girara_list_t* result = zathura_page_search_text(page, input, &error);
|
||||
render_unlock(zathura->sync.render_thread);
|
||||
|
||||
if (result == NULL || girara_list_size(result) == 0) {
|
||||
girara_list_free(result);
|
||||
g_object_set(page_widget, "search-results", NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user