From bd65ef323bac7dffb5216efcaee4899c1ba857e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 12 Nov 2008 00:47:09 +0100 Subject: [PATCH] Make mouse click handling more consistent --- midori/midori-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 61d995a3..d16de49e 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -702,8 +702,8 @@ gtk_widget_button_press_event_cb (WebKitWebView* web_view, /* Open link in new tab */ background = view->open_tabs_in_the_background; if (event->state & GDK_SHIFT_MASK) - g_signal_emit_by_name (view, "new-tab", link_uri, background); - else g_signal_emit_by_name (view, "new-tab", link_uri, !background); + background = !background; + g_signal_emit_by_name (view, "new-tab", link_uri, background); return TRUE; } else if (event->state & GDK_SHIFT_MASK) -- 2.39.5