From 43139d88cd2091546a31d5bfb999f2743a27dbf9 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 2 Jun 2018 20:31:15 +0200 Subject: [PATCH] Use correct constant --- zathura/callbacks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zathura/callbacks.c b/zathura/callbacks.c index 1cc9af4..04cd268 100644 --- a/zathura/callbacks.c +++ b/zathura/callbacks.c @@ -733,7 +733,7 @@ cb_page_widget_scaled_button_release(ZathuraPage* page_widget, GdkEventButton* e refresh_view(zathura); } - if (event->button != 1 || !(event->state & GDK_CONTROL_MASK)) { + if (event->button != GDK_BUTTON_PRIMARY || !(event->state & GDK_CONTROL_MASK)) { return; } @@ -758,4 +758,3 @@ cb_page_widget_scaled_button_release(ZathuraPage* page_widget, GdkEventButton* e synctex_edit(editor, page, event->x, event->y); g_free(editor); } -