Wayland: Fix behavior of leaving full screen mode

These changes make GLFW fullscreen more consistent, but unfortunately
also make GLFW even more oblivious to user-initiated XDG shell
fullscreen changes.

Fixes #1995

(cherry picked from commit ddd087d662)
This commit is contained in:
Camilla Löwy
2022-06-09 21:31:44 +02:00
parent 581fed38be
commit dea602623d
4 changed files with 43 additions and 27 deletions
+1 -2
View File
@@ -181,6 +181,7 @@ typedef struct _GLFWwindowWayland
int width, height;
GLFWbool visible;
GLFWbool maximized;
GLFWbool activated;
GLFWbool hovered;
GLFWbool transparent;
struct wl_surface* surface;
@@ -212,8 +213,6 @@ typedef struct _GLFWwindowWayland
struct zwp_idle_inhibitor_v1* idleInhibitor;
GLFWbool wasFullscreen;
struct {
GLFWbool serverSide;
struct wl_buffer* buffer;