summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'eel/eel-canvas.c')
-rw-r--r--eel/eel-canvas.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 74132149..162c0b44 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3083,6 +3083,12 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event)
canvas = EEL_CANVAS (widget);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ /* Don't handle extra mouse button events */
+ if (event->button > 5)
+ return FALSE;
+#endif
+
/*
* dispatch normally regardless of the event's window if an item has
* has a pointer grab in effect