From 4341a094736c5ff44ad0bbee9e89f314475b090a Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 7 Nov 2016 22:56:26 +0100 Subject: [PATCH] Use constant instead of magic value Signed-off-by: Sebastian Ramacher --- zathura/page-widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/page-widget.c b/zathura/page-widget.c index 5d929cb..f525879 100644 --- a/zathura/page-widget.c +++ b/zathura/page-widget.c @@ -835,7 +835,7 @@ cb_zathura_page_widget_button_release_event(GtkWidget* widget, GdkEventButton* b button->x = oldx; button->y = oldy; - if (button->button != 1) { + if (button->button != GDK_BUTTON_PRIMARY) { return false; }