From f36b71350da51d8eb130a5e5553852dc8c799156 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 13 Nov 2021 12:15:27 +0530 Subject: [PATCH] Use an anonymous struct for before_fullscreen --- kitty/state.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kitty/state.h b/kitty/state.h index 42cd10643..4fda37623 100644 --- a/kitty/state.h +++ b/kitty/state.h @@ -149,11 +149,6 @@ typedef struct { BorderRects border_rects; } Tab; -typedef struct { - int x, y, w, h; - bool is_set; -} OSWindowGeometry; - enum RENDER_STATE { RENDER_FRAME_NOT_REQUESTED, RENDER_FRAME_REQUESTED, RENDER_FRAME_READY }; typedef enum { NO_CLOSE_REQUESTED, CONFIRMABLE_CLOSE_REQUESTED, CLOSE_BEING_CONFIRMED, IMPERATIVE_CLOSE_REQUESTED } CloseRequest; @@ -170,7 +165,10 @@ typedef struct { void *handle; id_type id; uint32_t offscreen_framebuffer; - OSWindowGeometry before_fullscreen; + struct { + int x, y, w, h; + bool is_set; + } before_fullscreen; int viewport_width, viewport_height, window_width, window_height; double viewport_x_ratio, viewport_y_ratio; Tab *tabs;