diff --git a/kitty/glfw-wrapper.c b/kitty/glfw-wrapper.c index 4db98fd90..25188c65b 100644 --- a/kitty/glfw-wrapper.c +++ b/kitty/glfw-wrapper.c @@ -114,6 +114,9 @@ load_glfw(const char* path) { *(void **) (&glfwToggleFullscreen_impl) = dlsym(handle, "glfwToggleFullscreen"); if (glfwToggleFullscreen_impl == NULL) fail("Failed to load glfw function glfwToggleFullscreen with error: %s", dlerror()); + *(void **) (&glfwIsFullscreen_impl) = dlsym(handle, "glfwIsFullscreen"); + if (glfwIsFullscreen_impl == NULL) fail("Failed to load glfw function glfwIsFullscreen with error: %s", dlerror()); + *(void **) (&glfwDestroyWindow_impl) = dlsym(handle, "glfwDestroyWindow"); if (glfwDestroyWindow_impl == NULL) fail("Failed to load glfw function glfwDestroyWindow with error: %s", dlerror()); diff --git a/kitty/glfw-wrapper.h b/kitty/glfw-wrapper.h index 6f8ce2c87..16d52ad96 100644 --- a/kitty/glfw-wrapper.h +++ b/kitty/glfw-wrapper.h @@ -1732,6 +1732,10 @@ typedef bool (*glfwToggleFullscreen_func)(GLFWwindow*, unsigned int); GFW_EXTERN glfwToggleFullscreen_func glfwToggleFullscreen_impl; #define glfwToggleFullscreen glfwToggleFullscreen_impl +typedef bool (*glfwIsFullscreen_func)(GLFWwindow*, unsigned int); +GFW_EXTERN glfwIsFullscreen_func glfwIsFullscreen_impl; +#define glfwIsFullscreen glfwIsFullscreen_impl + typedef void (*glfwDestroyWindow_func)(GLFWwindow*); GFW_EXTERN glfwDestroyWindow_func glfwDestroyWindow_impl; #define glfwDestroyWindow glfwDestroyWindow_impl