pidgin/gtkwebview.c

changeset 38705
62a7a975251a
parent 38365
2ee19fb5fb0d
child 38707
6f4d3ab2f2ed
--- a/pidgin/gtkwebview.c	Fri Sep 08 00:55:18 2017 -0400
+++ b/pidgin/gtkwebview.c	Fri Sep 08 19:43:07 2017 -0400
@@ -969,7 +969,7 @@
 static gboolean
 webview_button_pressed(WebKitWebView *webview, GdkEventButton *event)
 {
-	if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
+	if (gdk_event_triggers_context_menu((GdkEvent *)event)) {
 		WebKitHitTestResult *hit;
 		int context;
 		WebKitDOMNode *node;

mercurial