From 0ddc57c2a0269a4d4c89042b680f5a1178cb7efa Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Sat, 26 Oct 2024 08:38:09 +1100 Subject: On GTK, allow middle click to insert multiple times within a document. https://github.com/geany/geany/issues/2629 --- doc/ScintillaHistory.html | 4 ++++ gtk/ScintillaGTK.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 09b7796a1..dc3a0278e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -596,6 +596,10 @@ Update to Unicode 15.1. Issue #285. +
  • + On GTK, allow middle click to insert multiple times within a document. + Geany Issue #2629. +
  • Release 5.5.3 diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index b40b6547d..38e0d0376 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1502,8 +1502,8 @@ void ScintillaGTK::PrimaryClearSelection(GtkClipboard *clip, gpointer pSci) { void ScintillaGTK::ClaimSelection() { // X Windows has a 'primary selection' as well as the clipboard. // Whenever the user selects some text, we become the primary selection - ClearPrimarySelection(); if (!sel.Empty()) { + ClearPrimarySelection(); if (gtk_clipboard_set_with_data( gtk_clipboard_get(GDK_SELECTION_PRIMARY), clipboardCopyTargets, nClipboardCopyTargets, -- cgit v1.2.3