mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
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:
6
kitty/glfw-wrapper.h
generated
6
kitty/glfw-wrapper.h
generated
@@ -1231,6 +1231,8 @@ typedef void (* GLFWkeyboardfun)(GLFWwindow*, int, int, int, int, const char*, i
|
||||
*/
|
||||
typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**);
|
||||
|
||||
typedef void (* GLFWliveresizefun)(GLFWwindow*, bool);
|
||||
|
||||
/*! @brief The function signature for monitor configuration callbacks.
|
||||
*
|
||||
* This is the function signature for monitor configuration callback functions.
|
||||
@@ -1791,6 +1793,10 @@ typedef GLFWdropfun (*glfwSetDropCallback_func)(GLFWwindow*, GLFWdropfun);
|
||||
glfwSetDropCallback_func glfwSetDropCallback_impl;
|
||||
#define glfwSetDropCallback glfwSetDropCallback_impl
|
||||
|
||||
typedef GLFWliveresizefun (*glfwSetLiveResizeCallback_func)(GLFWwindow*, GLFWliveresizefun);
|
||||
glfwSetLiveResizeCallback_func glfwSetLiveResizeCallback_impl;
|
||||
#define glfwSetLiveResizeCallback glfwSetLiveResizeCallback_impl
|
||||
|
||||
typedef int (*glfwJoystickPresent_func)(int);
|
||||
glfwJoystickPresent_func glfwJoystickPresent_impl;
|
||||
#define glfwJoystickPresent glfwJoystickPresent_impl
|
||||
|
||||
Reference in New Issue
Block a user