From 2bff26f90affc0f637e9fe2f480899c590f00494 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 4 Sep 2009 23:37:00 +0200 Subject: [PATCH] Don't middle click open when there's an editable This is still not a complete solution but better than before. --- midori/midori-view.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5