Use an anonymous struct

This commit is contained in:
Kovid Goyal 2022-03-01 07:46:45 +05:30
parent 998be9b90c
commit 1096cbe236
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

10
glfw/wl_platform.h vendored
View File

@ -128,11 +128,6 @@ typedef enum WaylandWindowState {
static const WaylandWindowState TOPLEVEL_STATE_DOCKED = TOPLEVEL_STATE_MAXIMIZED | TOPLEVEL_STATE_FULLSCREEN | TOPLEVEL_STATE_TILED_TOP | TOPLEVEL_STATE_TILED_LEFT | TOPLEVEL_STATE_TILED_RIGHT | TOPLEVEL_STATE_TILED_BOTTOM; static const WaylandWindowState TOPLEVEL_STATE_DOCKED = TOPLEVEL_STATE_MAXIMIZED | TOPLEVEL_STATE_FULLSCREEN | TOPLEVEL_STATE_TILED_TOP | TOPLEVEL_STATE_TILED_LEFT | TOPLEVEL_STATE_TILED_RIGHT | TOPLEVEL_STATE_TILED_BOTTOM;
typedef struct _GLFWwindowWaylandState {
int width, height;
uint32_t toplevel_states;
} _GLFWwindowWaylandState;
// Wayland-specific per-window data // Wayland-specific per-window data
// //
typedef struct _GLFWwindowWayland typedef struct _GLFWwindowWayland
@ -221,7 +216,10 @@ typedef struct _GLFWwindowWayland
unsigned int x, y; unsigned int x, y;
} axis_discrete_count; } axis_discrete_count;
_GLFWwindowWaylandState current, pending; struct {
int width, height;
uint32_t toplevel_states;
} current, pending;
} _GLFWwindowWayland; } _GLFWwindowWayland;
typedef enum _GLFWWaylandOfferType typedef enum _GLFWWaylandOfferType