commit 29055e6ff1c93477def5558c7b5d636a228c1a0a
parent 9ab4ff814516cd8e818ae81acd3d3ff5d04a1ba5
Author: falkTX <falktx@falktx.com>
Date: Mon, 11 Jul 2022 23:21:05 +0100
Make sure to only wait under X11
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp
@@ -784,13 +784,11 @@ const void* Window::PrivateData::getClipboard(size_t& dataSize)
return nullptr;
}
+ #ifdef DGL_USING_X11
// wait for type request, clipboardTypeId must be != 0 to be valid
while (clipboardTypeId == 0 && waitingForClipboardData)
- {
- #ifdef DGL_USING_X11
puglX11UpdateWithoutExposures(appData->world);
- #endif
- }
+ #endif
if (clipboardTypeId == 0)
{
@@ -799,13 +797,11 @@ const void* Window::PrivateData::getClipboard(size_t& dataSize)
return nullptr;
}
+ #ifdef DGL_USING_X11
// wait for actual data (assumes offer was accepted)
while (waitingForClipboardData)
- {
- #ifdef DGL_USING_X11
puglX11UpdateWithoutExposures(appData->world);
- #endif
- }
+ #endif
if (clipboardTypeId == 0)
{