pidgin/gtkroomlist.c

changeset 38705
62a7a975251a
parent 38583
148773196bc1
child 38707
6f4d3ab2f2ed
--- a/pidgin/gtkroomlist.c	Fri Sep 08 00:55:18 2017 -0400
+++ b/pidgin/gtkroomlist.c	Fri Sep 08 19:43:07 2017 -0400
@@ -298,7 +298,7 @@
 	GtkWidget *menu;
 	static struct _menu_cb_info info; /* XXX? */
 
-	if (event->button != 3 || event->type != GDK_BUTTON_PRESS)
+	if (!gdk_event_triggers_context_menu((GdkEvent *)event))
 		return FALSE;
 
 	/* Here we figure out which room was clicked */

mercurial