mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Use an anonymous struct
This commit is contained in:
10
glfw/wl_platform.h
vendored
10
glfw/wl_platform.h
vendored
@@ -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;
|
||||
|
||||
|
||||
typedef struct _GLFWwindowWaylandState {
|
||||
int width, height;
|
||||
uint32_t toplevel_states;
|
||||
} _GLFWwindowWaylandState;
|
||||
|
||||
// Wayland-specific per-window data
|
||||
//
|
||||
typedef struct _GLFWwindowWayland
|
||||
@@ -221,7 +216,10 @@ typedef struct _GLFWwindowWayland
|
||||
unsigned int x, y;
|
||||
} axis_discrete_count;
|
||||
|
||||
_GLFWwindowWaylandState current, pending;
|
||||
struct {
|
||||
int width, height;
|
||||
uint32_t toplevel_states;
|
||||
} current, pending;
|
||||
} _GLFWwindowWayland;
|
||||
|
||||
typedef enum _GLFWWaylandOfferType
|
||||
|
||||
Reference in New Issue
Block a user