Use glfw 3.3 functions for the primary selection

Allows us to drop the dependency on xsel for systems with glfw 3.3
This commit is contained in:
Kovid Goyal
2017-10-17 21:44:56 +05:30
parent 9322b210ff
commit 7f3c808e66
4 changed files with 68 additions and 10 deletions

View File

@@ -139,6 +139,7 @@ extern bool init_keys(PyObject *module);
extern bool init_graphics(PyObject *module);
extern bool init_shaders(PyObject *module);
extern bool init_shaders_debug(PyObject *module);
extern bool init_x11_funcs(PyObject *module);
#ifdef __APPLE__
extern int init_CoreText(PyObject *);
extern bool init_cocoa(PyObject *module);
@@ -180,6 +181,7 @@ PyInit_fast_data_types(void) {
if (!init_Face(m)) return NULL;
if (!init_freetype_library(m)) return NULL;
if (!init_fontconfig_library(m)) return NULL;
if (!init_x11_funcs(m)) return NULL;
#endif
#define OOF(n) #n, offsetof(Cell, n)