summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/clipboard.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx
index 5d925b3b1954..f5be6f86c339 100644
--- a/vcl/osx/clipboard.cxx
+++ b/vcl/osx/clipboard.cxx
@@ -140,6 +140,14 @@ uno::Reference<datatransfer::XTransferable> SAL_CALL AquaClipboard::getContents(
{
osl::MutexGuard aGuard(m_aMutex);
+ // tdf#144124 Detect if ownership has been lost
+ // The shortcut assumes that lost ownership notifications from the
+ // system clipboard will happen elsewhere. They do under normal
+ // conditions, but do not when some clipboard managers are running.
+ // So, explicitly check ownership to catch such cases.
+ if (mIsSystemPasteboard)
+ applicationDidBecomeActive(nullptr);
+
// Shortcut: If we are clipboard owner already we don't need
// to drag the data through the system clipboard
if (mXClipboardContent.is())