Cleanup of clipboard and string atoms.

This commit is contained in:
Camilla Berglund
2013-01-29 02:45:08 +01:00
parent 82b8dd5040
commit f3e39ce680
4 changed files with 22 additions and 18 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ Atom _glfwWriteSelection(XSelectionRequestEvent* request)
if (property == None)
property = _glfw.x11.selection.property;
if (request->target == _glfw.x11.selection.targets)
if (request->target == _glfw.x11.TARGETS)
{
// The list of supported targets was requested
@@ -139,7 +139,7 @@ void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string)
// Set the specified window as owner of the selection
XSetSelectionOwner(_glfw.x11.display,
_glfw.x11.selection.atom,
_glfw.x11.CLIPBOARD,
window->x11.handle, CurrentTime);
}
@@ -155,7 +155,7 @@ const char* _glfwPlatformGetClipboardString(_GLFWwindow* window)
_glfw.x11.selection.target = _glfw.x11.selection.formats[i];
XConvertSelection(_glfw.x11.display,
_glfw.x11.selection.atom,
_glfw.x11.CLIPBOARD,
_glfw.x11.selection.target,
_glfw.x11.selection.property,
window->x11.handle, CurrentTime);