X11: use the window manager's native full-screen implementation when making windows full-screen

This matches the behavior on Cocoa and Wayland.
Fixes #1605
This commit is contained in:
Kovid Goyal
2019-05-12 15:53:06 +05:30
parent c27cf31a7c
commit 1fa9b8f102
12 changed files with 158 additions and 147 deletions

3
kitty/glfw-wrapper.c generated
View File

@@ -110,6 +110,9 @@ load_glfw(const char* path) {
*(void **) (&glfwCreateWindow_impl) = dlsym(handle, "glfwCreateWindow");
if (glfwCreateWindow_impl == NULL) fail("Failed to load glfw function glfwCreateWindow with error: %s", dlerror());
*(void **) (&glfwToggleFullscreen_impl) = dlsym(handle, "glfwToggleFullscreen");
if (glfwToggleFullscreen_impl == NULL) fail("Failed to load glfw function glfwToggleFullscreen 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());