Use constant instead of magic value

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2016-11-07 22:56:26 +01:00
parent 79a5d1fa68
commit 4341a09473

View file

@ -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;
}