diff --git a/src/window.c b/src/window.c index e153bc27..17410e13 100644 --- a/src/window.c +++ b/src/window.c @@ -215,6 +215,10 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, window->numer = GLFW_DONT_CARE; window->denom = GLFW_DONT_CARE; + window->preeditCursorPosX = 0; + window->preeditCursorPosY = height; + window->preeditCursorHeight = 0; + if (!_glfw.platform.createWindow(window, &wndconfig, &ctxconfig, &fbconfig)) { glfwDestroyWindow((GLFWwindow*) window);