mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
Revert "Only set dummy X11 selection if we do not own it"
This reverts commit af4ee1a487
.
This commit is contained in:
parent
b4e9c794fc
commit
1b704b6267
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user