]> spindle.queued.net Git - midori/commitdiff
Don't middle click open when there's an editable
authorChristian Dywan <christian@twotoasts.de>
Fri, 4 Sep 2009 21:37:00 +0000 (23:37 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 4 Sep 2009 21:37:00 +0000 (23:37 +0200)
This is still not a complete solution but better than before.

midori/midori-view.c

index 6c0f9df0188dd816017d1b12d18ecd170f457191..3b06aba0ba84d1bf903477ebcdc6b67db7398c7f 100644 (file)
@@ -1010,6 +1010,9 @@ gtk_widget_button_press_event_cb (WebKitWebView*  web_view,
         else if (view->middle_click_opens_selection)
         {
             guint i = 0;
+            /* FIXME: This isn't quite correct, we need mouse context */
+            if (webkit_web_view_can_paste_clipboard (WEBKIT_WEB_VIEW (view->web_view)))
+                return FALSE;
             clipboard = gtk_clipboard_get_for_display (
                 gtk_widget_get_display (GTK_WIDGET (view)),
                 GDK_SELECTION_PRIMARY);