]> spindle.queued.net Git - midori/commitdiff
Make mouse click handling more consistent
authorEnrico Tröger <enrico.troeger@uvena.de>
Tue, 11 Nov 2008 23:47:09 +0000 (00:47 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 11 Nov 2008 23:47:09 +0000 (00:47 +0100)
midori/midori-view.c

index 61d995a39a9490b785b948449e62a80b14407789..d16de49ee0b0b35c5fc924f1acbddaec9bb5352f 100644 (file)
@@ -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)