]> git.lyx.org Git - features.git/commitdiff
Revert "Only set dummy X11 selection if we do not own it"
authorjpc <jpc@lyx.org>
Tue, 4 May 2021 16:00:50 +0000 (18:00 +0200)
committerjpc <jpc@lyx.org>
Tue, 4 May 2021 16:00:50 +0000 (18:00 +0200)
This reverts commit af4ee1a487c4d899b71df02ba57c2f024fea6786.

src/frontends/qt/GuiSelection.cpp

index e10bb476fd5894e480b54701c712c314dba4e1bb..0eb3d5133d7f49b0c5f03eae372997e4f8a7d13c 100644 (file)
@@ -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