mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-29 04:11:49 +00:00
Prevent glfw from doing stupid stuff on cocoa
This commit is contained in:
parent
3773aaa8a1
commit
d457abdee4
1 changed files with 4 additions and 0 deletions
|
|
@ -309,6 +309,10 @@ glfw_init(PyObject UNUSED *self, PyObject *args) {
|
|||
const char* err = load_glfw(path);
|
||||
if (err) { PyErr_SetString(PyExc_RuntimeError, err); return NULL; }
|
||||
glfwSetErrorCallback(error_callback);
|
||||
#ifdef __APPLE__
|
||||
glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, 0);
|
||||
glfwInitHint(GLFW_COCOA_MENUBAR, 0);
|
||||
#endif
|
||||
PyObject *ans = glfwInit() ? Py_True: Py_False;
|
||||
Py_INCREF(ans);
|
||||
return ans;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue