[LyX/master] Revert "Only set dummy X11 selection if we do not own it"

jpc jpc at lyx.org
Tue May 4 16:01:40 UTC 2021


commit 1b704b6267bb8144a410c02595887b0731cf4d53
Author: jpc <jpc at lyx.org>
Date:   Tue May 4 18:00:50 2021 +0200

    Revert "Only set dummy X11 selection if we do not own it"
    
    This reverts commit af4ee1a487c4d899b71df02ba57c2f024fea6786.
---
 src/frontends/qt/GuiSelection.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/GuiSelection.cpp b/src/frontends/qt/GuiSelection.cpp
index e10bb47..0eb3d51 100644
--- a/src/frontends/qt/GuiSelection.cpp
+++ b/src/frontends/qt/GuiSelection.cpp
@@ -51,10 +51,9 @@ void GuiSelection::haveSelection(bool own)
 	// an application actually requests it.
 	// This way calling Selection::have() is cheap and we can do it as
 	// often as we want.
-	if (own && !qApp->clipboard()->ownsSelection()) {
-		LYXERR(Debug::SELECTION, "GuiSelection: setting dummy selection");
+	//LYXERR(Debug::SELECTION, "GuiSelection: setting dummy selection");
+	if (own)
 		qApp->clipboard()->setText(QString(), QClipboard::Selection);
-	}
 	// We don't need to do anything if own = false, as this case is
 	// handled by QT.
 	// FIXME (gb): This is wrong. What is missing here is rather a call of


More information about the lyx-cvs mailing list