|
|
@ -273,11 +273,11 @@ void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) |
|
|
|
|
|
|
|
|
|
|
|
const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) |
|
|
|
const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i; |
|
|
|
size_t i; |
|
|
|
const Atom formats[] = { _glfw.x11.UTF8_STRING, |
|
|
|
const Atom formats[] = { _glfw.x11.UTF8_STRING, |
|
|
|
_glfw.x11.COMPOUND_STRING, |
|
|
|
_glfw.x11.COMPOUND_STRING, |
|
|
|
XA_STRING }; |
|
|
|
XA_STRING }; |
|
|
|
const int formatCount = sizeof(formats) / sizeof(formats[0]); |
|
|
|
const size_t formatCount = sizeof(formats) / sizeof(formats[0]); |
|
|
|
|
|
|
|
|
|
|
|
if (_glfwFindWindowByHandle(XGetSelectionOwner(_glfw.x11.display, |
|
|
|
if (_glfwFindWindowByHandle(XGetSelectionOwner(_glfw.x11.display, |
|
|
|
_glfw.x11.CLIPBOARD))) |
|
|
|
_glfw.x11.CLIPBOARD))) |
|
|
|