From e85ffc10568dbb77a38b8d59ab99954903df6ee8 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 28 Sep 2025 09:49:20 +0800 Subject: [PATCH] opt: optimize code struct --- src/mango.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mango.c b/src/mango.c index 7c91353..697e6d6 100644 --- a/src/mango.c +++ b/src/mango.c @@ -164,6 +164,11 @@ enum { enum { UP, DOWN, LEFT, RIGHT, UNDIR }; /* smartmovewin */ enum { NONE, OPEN, MOVE, CLOSE, TAG }; enum { UNFOLD, FOLD, INVALIDFOLD }; + +typedef struct Pertag Pertag; +typedef struct Monitor Monitor; +typedef struct Client Client; + struct dvec2 { double x, y; }; @@ -229,10 +234,6 @@ struct dwl_animation { int action; }; -typedef struct Pertag Pertag; -typedef struct Monitor Monitor; -struct wlr_foreign_toplevel_handle_v1; - typedef struct { float width_scale; float height_scale; @@ -244,7 +245,6 @@ typedef struct { bool should_scale; } BufferData; -typedef struct Client Client; struct Client { /* Must keep these three elements in this order */ unsigned int type; /* XDGShell or X11* */