X11 implementation of clipboard pasting.

This commit is contained in:
Ralph Eastwood
2011-09-21 15:43:28 +01:00
parent 31c91545be
commit 57522db6e2
7 changed files with 147 additions and 5 deletions
+9
View File
@@ -89,6 +89,8 @@
#define _GLFW_PLATFORM_LIBRARY_STATE _GLFWlibraryX11 X11
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextGLX GLX
// Number of string atoms that will be checked
#define _GLFW_STRING_ATOMS_COUNT 4
//========================================================================
// GLFW platform specific types
@@ -225,6 +227,13 @@ typedef struct _GLFWlibraryX11
uint64_t t0;
} timer;
// Selection data
struct {
Atom stringatoms[_GLFW_STRING_ATOMS_COUNT];
Atom request;
int converted;
} selection;
#if defined(_GLFW_DLOPEN_LIBGL)
void* libGL; // dlopen handle for libGL.so
#endif