mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
...
This commit is contained in:
@@ -404,9 +404,9 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
|
|||||||
PyObject *pret = PyObject_CallFunction(pre_show_callback, "N", native_window_handle(glfw_window));
|
PyObject *pret = PyObject_CallFunction(pre_show_callback, "N", native_window_handle(glfw_window));
|
||||||
if (pret == NULL) return NULL;
|
if (pret == NULL) return NULL;
|
||||||
Py_DECREF(pret);
|
Py_DECREF(pret);
|
||||||
glfwMakeContextCurrent(glfw_window);
|
|
||||||
if (x != -1 && y != -1) glfwSetWindowPos(glfw_window, x, y);
|
if (x != -1 && y != -1) glfwSetWindowPos(glfw_window, x, y);
|
||||||
glfwShowWindow(glfw_window);
|
glfwShowWindow(glfw_window);
|
||||||
|
glfwMakeContextCurrent(glfw_window);
|
||||||
if (is_first_window) {
|
if (is_first_window) {
|
||||||
gl_init();
|
gl_init();
|
||||||
PyObject *ret = PyObject_CallFunction(load_programs, "i", glfwGetWindowAttrib(glfw_window, GLFW_TRANSPARENT_FRAMEBUFFER));
|
PyObject *ret = PyObject_CallFunction(load_programs, "i", glfwGetWindowAttrib(glfw_window, GLFW_TRANSPARENT_FRAMEBUFFER));
|
||||||
|
|||||||
Reference in New Issue
Block a user