opt: optimize code struct
This commit is contained in:
10
src/mango.c
10
src/mango.c
@@ -164,6 +164,11 @@ enum {
|
|||||||
enum { UP, DOWN, LEFT, RIGHT, UNDIR }; /* smartmovewin */
|
enum { UP, DOWN, LEFT, RIGHT, UNDIR }; /* smartmovewin */
|
||||||
enum { NONE, OPEN, MOVE, CLOSE, TAG };
|
enum { NONE, OPEN, MOVE, CLOSE, TAG };
|
||||||
enum { UNFOLD, FOLD, INVALIDFOLD };
|
enum { UNFOLD, FOLD, INVALIDFOLD };
|
||||||
|
|
||||||
|
typedef struct Pertag Pertag;
|
||||||
|
typedef struct Monitor Monitor;
|
||||||
|
typedef struct Client Client;
|
||||||
|
|
||||||
struct dvec2 {
|
struct dvec2 {
|
||||||
double x, y;
|
double x, y;
|
||||||
};
|
};
|
||||||
@@ -229,10 +234,6 @@ struct dwl_animation {
|
|||||||
int action;
|
int action;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct Pertag Pertag;
|
|
||||||
typedef struct Monitor Monitor;
|
|
||||||
struct wlr_foreign_toplevel_handle_v1;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
float width_scale;
|
float width_scale;
|
||||||
float height_scale;
|
float height_scale;
|
||||||
@@ -244,7 +245,6 @@ typedef struct {
|
|||||||
bool should_scale;
|
bool should_scale;
|
||||||
} BufferData;
|
} BufferData;
|
||||||
|
|
||||||
typedef struct Client Client;
|
|
||||||
struct Client {
|
struct Client {
|
||||||
/* Must keep these three elements in this order */
|
/* Must keep these three elements in this order */
|
||||||
unsigned int type; /* XDGShell or X11* */
|
unsigned int type; /* XDGShell or X11* */
|
||||||
|
|||||||
Reference in New Issue
Block a user