diff --git a/config.mk b/config.mk index ff3d8d4..2d32656 100644 --- a/config.mk +++ b/config.mk @@ -9,7 +9,7 @@ MANPREFIX = ${PREFIX}/share/man # libs GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib) -GTK_LIB = $(shell pkg-config --libs gtk+-2.0 poppler-glib) +GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 poppler-glib) INCS = -I. -I/usr/include ${GTK_INC} LIBS = -L/usr/lib -lc ${GTK_LIB} -lpthread diff --git a/zathura.c b/zathura.c index 4967980..5bdbd3b 100644 --- a/zathura.c +++ b/zathura.c @@ -1117,7 +1117,6 @@ watch_file(void* parameter) Zathura.PDF.scale = scale; draw(page); - gtk_widget_queue_draw(Zathura.UI.drawing_area); break; } @@ -2854,6 +2853,9 @@ int main(int argc, char* argv[]) arg.n = ADJUST_OPEN; sc_adjust_window(&arg); + if(!g_thread_supported()) + g_thread_init(NULL); + gdk_threads_init(); gtk_main(); return 0;