Revert "Only set dummy X11 selection if we do not own it"

This reverts commit af4ee1a487.
This commit is contained in:
jpc 2021-05-04 18:00:50 +02:00
parent b4e9c794fc
commit 1b704b6267

View File

@ -51,10 +51,9 @@ void GuiSelection::haveSelection(bool own)
// an application actually requests it. // an application actually requests it.
// This way calling Selection::have() is cheap and we can do it as // This way calling Selection::have() is cheap and we can do it as
// often as we want. // 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); qApp->clipboard()->setText(QString(), QClipboard::Selection);
}
// We don't need to do anything if own = false, as this case is // We don't need to do anything if own = false, as this case is
// handled by QT. // handled by QT.
// FIXME (gb): This is wrong. What is missing here is rather a call of // FIXME (gb): This is wrong. What is missing here is rather a call of