Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /src/fe-gtk/xtext.c [r584] .. [r585] Maximize Restore

  Switch to side-by-side view

--- a/src/fe-gtk/xtext.c
+++ b/src/fe-gtk/xtext.c
@@ -2002,7 +2002,7 @@
 
 	gdk_window_get_pointer (widget->window, &x, &y, 0);
 
-	if (event->button == 3)		  /* right click */
+	if (event->button == 3 || event->button == 2) /* right/middle click */
 	{
 		word = gtk_xtext_get_word (xtext, x, y, 0, 0, 0);
 		if (word)
@@ -2012,12 +2012,6 @@
 		} else
 			g_signal_emit (G_OBJECT (xtext), xtext_signals[WORD_CLICK], 0,
 								"", event);
-		return FALSE;
-	}
-
-	if (event->button == 2)
-	{
-		g_signal_emit (G_OBJECT (xtext), xtext_signals[WORD_CLICK], 0, "", event);
 		return FALSE;
 	}