Load glfw primary selection functions dynamically

Allows kitty to run on wayland. Also dont try to set the window
icon on wayland.
This commit is contained in:
Kovid Goyal
2017-10-18 12:46:32 +05:30
parent d4e5bc4141
commit e558880e8f
5 changed files with 72 additions and 76 deletions

View File

@@ -139,7 +139,6 @@ 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);
@@ -181,7 +180,6 @@ 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)