From: Christian Dywan Date: Fri, 4 Sep 2009 21:37:00 +0000 (+0200) Subject: Don't middle click open when there's an editable X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bff26f90affc0f637e9fe2f480899c590f00494;p=midori Don't middle click open when there's an editable This is still not a complete solution but better than before. --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 6c0f9df0..3b06aba0 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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);