mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Revert "Revert "Only set dummy X11 selection if we do not own it""
This reverts commit 1b704b6267
.
(the initial reversion was done unintentionally)
This commit is contained in:
parent
423ddb1199
commit
5d96ee69eb
@ -51,9 +51,10 @@ 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.
|
||||
//LYXERR(Debug::SELECTION, "GuiSelection: setting dummy selection");
|
||||
if (own)
|
||||
if (own && !qApp->clipboard()->ownsSelection()) {
|
||||
LYXERR(Debug::SELECTION, "GuiSelection: setting dummy selection");
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user