Fix not building with wayland-protocols 1.32

Fix #6422
This commit is contained in:
Kovid Goyal
2023-07-05 10:29:33 +05:30
parent 60a7a53ccd
commit 95d15648fa
2 changed files with 4 additions and 0 deletions

1
glfw/wl_platform.h vendored
View File

@@ -125,6 +125,7 @@ typedef enum WaylandWindowState {
TOPLEVEL_STATE_TILED_RIGHT = 32,
TOPLEVEL_STATE_TILED_TOP = 64,
TOPLEVEL_STATE_TILED_BOTTOM = 128,
TOPLEVEL_STATE_SUSPENDED = 256,
} WaylandWindowState;
typedef struct glfw_wl_xdg_activation_request {

3
glfw/wl_window.c vendored
View File

@@ -535,6 +535,9 @@ xdgToplevelHandleConfigure(void* data,
C(TOPLEVEL_STATE_TILED_RIGHT);
C(TOPLEVEL_STATE_TILED_TOP);
C(TOPLEVEL_STATE_TILED_BOTTOM);
#ifdef XDG_TOPLEVEL_STATE_TILED_SUSPENDED_SINCE_VERSION
C(TOPLEVEL_STATE_SUSPENDED);
#endif
#undef C
}
}