[Xfce4-commits] [apps/xfce4-terminal] 01/01: Refine the MiscMiddleClickOpensUri option processing

noreply at xfce.org noreply at xfce.org
Thu Jul 28 11:52:40 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit bab1e53f6a82522c9d480b5353bd5644e34c198f
Author: Igor <f2404 at yandex.ru>
Date:   Thu Jul 28 12:52:35 2016 +0300

    Refine the MiscMiddleClickOpensUri option processing
---
 terminal/terminal-widget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index f543e2d..5d859d1 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -405,8 +405,8 @@ terminal_widget_button_press_event (GtkWidget       *widget,
   g_object_get (G_OBJECT (TERMINAL_WIDGET (widget)->preferences),
       "misc-middle-click-opens-uri", &middle_click_opens_uri, NULL);
 
-  if ((middle_click_opens_uri ? (event->button == 2) : (event->button == 1 && (event->state & GDK_CONTROL_MASK))) &&
-        event->type == GDK_BUTTON_PRESS)
+  if ((middle_click_opens_uri ? (event->button == 2) : (event->button == 1 && event->state == GDK_CONTROL_MASK)) &&
+      event->type == GDK_BUTTON_PRESS)
     {
       /* clicking on an URI fires the responsible application */
       match = vte_terminal_match_check_event (VTE_TERMINAL (widget), (GdkEvent *) event, &tag);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list