summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-10 12:32:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-10 14:27:27 +0200
commitfb9c1c191e76755ffa6acb09d4f50533cb589d1b (patch)
tree7bc7ff9d5aa300de2cd82ad88e31ba02cf22a805
parentca4e75d694a5fb41a1c800146319aa6ba34d8bab (diff)
tdf#118661 LibreOffice remains in background after closing it
regression from commit d0f44d8ba7e87aa263008d3cfc4e68294d783162 tdf#84323 - sal - add sane sleep interface: cleanup osl_waitThread Change-Id: I55c2fa6c8993cc6268b1c5d9331c665c401e8efe Reviewed-on: https://gerrit.libreoffice.org/57228 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 43f0d228002c..c2d8858d1c61 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -943,6 +943,7 @@ bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_In
}
else
{
+ aGuard.clear();
osl::Thread::wait(std::chrono::milliseconds(100));
aGuard.reset();
}