diff --git a/config.def.h b/config.def.h index 51aef3f..e087dce 100644 --- a/config.def.h +++ b/config.def.h @@ -56,6 +56,7 @@ static const char DEFAULT_TEXT[] = "[No Name]"; #define SHOW_SCROLLBARS 0 #define ADJUST_OPEN ADJUST_BESTFIT #define RECOLOR_OPEN 0 +#define SELECTION_STYLE POPPLER_SELECTION_GLYPH /* shortcuts */ Shortcut shortcuts[] = { diff --git a/zathura.c b/zathura.c index 58054c5..54518df 100644 --- a/zathura.c +++ b/zathura.c @@ -3209,7 +3209,7 @@ cb_view_button_release(GtkWidget* widget, GdkEventButton* event, gpointer data) /* get selected text */ g_static_mutex_lock(&(Zathura.Lock.pdflib_lock)); char* selected_text = poppler_page_get_text( - Zathura.PDF.pages[Zathura.PDF.page_number]->page,POPPLER_SELECTION_GLYPH, + Zathura.PDF.pages[Zathura.PDF.page_number]->page,SELECTION_STYLE, &rectangle); if(selected_text)