Add API to glfw to get the currently active text selection

This commit is contained in:
Kovid Goyal
2022-08-08 15:52:34 +05:30
parent d04d4444af
commit 4dd696e4e0
7 changed files with 37 additions and 0 deletions

3
kitty/glfw-wrapper.c generated
View File

@@ -38,6 +38,9 @@ load_glfw(const char* path) {
*(void **) (&glfwSetDrawTextFunction_impl) = dlsym(handle, "glfwSetDrawTextFunction");
if (glfwSetDrawTextFunction_impl == NULL) fail("Failed to load glfw function glfwSetDrawTextFunction with error: %s", dlerror());
*(void **) (&glfwSetCurrentSelectionCallback_impl) = dlsym(handle, "glfwSetCurrentSelectionCallback");
if (glfwSetCurrentSelectionCallback_impl == NULL) fail("Failed to load glfw function glfwSetCurrentSelectionCallback with error: %s", dlerror());
*(void **) (&glfwTerminate_impl) = dlsym(handle, "glfwTerminate");
if (glfwTerminate_impl == NULL) fail("Failed to load glfw function glfwTerminate with error: %s", dlerror());