mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
X11 copying code and support PRIMARY & CLIPBOARD clipboards.
This commit is contained in:
@@ -71,5 +71,8 @@ GLFWAPI size_t glfwGetClipboardData(void *data, size_t size, int format)
|
||||
if (format == GLFW_CLIPBOARD_FORMAT_NONE)
|
||||
return 0;
|
||||
|
||||
if (!data || !size)
|
||||
return 0;
|
||||
|
||||
return _glfwPlatformGetClipboardData(data, size, format);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user