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

4
kitty/glfw-wrapper.h generated
View File

@@ -1536,6 +1536,10 @@ typedef GLFWwindow* (*glfwCreateWindow_func)(int, int, const char*, GLFWmonitor*
glfwCreateWindow_func glfwCreateWindow_impl;
#define glfwCreateWindow glfwCreateWindow_impl
typedef bool (*glfwToggleFullscreen_func)(GLFWwindow*, unsigned int);
glfwToggleFullscreen_func glfwToggleFullscreen_impl;
#define glfwToggleFullscreen glfwToggleFullscreen_impl
typedef void (*glfwDestroyWindow_func)(GLFWwindow*);
glfwDestroyWindow_func glfwDestroyWindow_impl;
#define glfwDestroyWindow glfwDestroyWindow_impl