summaryrefslogtreecommitdiff
path: root/src/utils/copynpaste.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/copynpaste.cpp')
-rw-r--r--src/utils/copynpaste.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index b2d241f16..1d4297fd5 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -339,6 +339,8 @@ static char* getSelection(Display *const dpy, Window us, Atom selection)
bool retrieveBuffer(std::string& text, size_t& pos)
{
+// +++ need use SDL_GetWindowWMInfo
+#ifndef USE_SDL2
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
@@ -376,6 +378,7 @@ bool retrieveBuffer(std::string& text, size_t& pos)
return true;
}
}
+#endif
return false;
}