Avoid using timing related hacks to detect the end of a live resize on macOS

Since cocoa provides start/end notifications for live resizing, rely on
those instead.
This commit is contained in:
Kovid Goyal
2019-02-28 15:15:31 +05:30
parent bbeb08ba08
commit 3bd1ca0ac3
9 changed files with 63 additions and 4 deletions

3
kitty/glfw-wrapper.c generated
View File

@@ -290,6 +290,9 @@ load_glfw(const char* path) {
*(void **) (&glfwSetDropCallback_impl) = dlsym(handle, "glfwSetDropCallback");
if (glfwSetDropCallback_impl == NULL) fail("Failed to load glfw function glfwSetDropCallback with error: %s", dlerror());
*(void **) (&glfwSetLiveResizeCallback_impl) = dlsym(handle, "glfwSetLiveResizeCallback");
if (glfwSetLiveResizeCallback_impl == NULL) fail("Failed to load glfw function glfwSetLiveResizeCallback with error: %s", dlerror());
*(void **) (&glfwJoystickPresent_impl) = dlsym(handle, "glfwJoystickPresent");
if (glfwJoystickPresent_impl == NULL) fail("Failed to load glfw function glfwJoystickPresent with error: %s", dlerror());