Add module "src/state.c"
This commit is contained in:
parent
b68a956f1e
commit
c941891351
1
Makefile
1
Makefile
|
@ -25,6 +25,7 @@ MODULES_SRC = \
|
|||
src/layouts.c \
|
||||
src/settings.c \
|
||||
src/spawn.c \
|
||||
src/state.c \
|
||||
src/unit.c \
|
||||
src/util.c
|
||||
|
||||
|
|
21
src/dwm.c
21
src/dwm.c
|
@ -3,6 +3,7 @@
|
|||
#include "layouts.h"
|
||||
#include "settings.h"
|
||||
#include "spawn.h"
|
||||
#include "state.h"
|
||||
#include "unit.h"
|
||||
#include "util.h"
|
||||
|
||||
|
@ -89,26 +90,6 @@ typedef struct {
|
|||
const Arg arg;
|
||||
} Button;
|
||||
|
||||
struct BasicGeometry {
|
||||
int x, y, w, h;
|
||||
};
|
||||
|
||||
struct ClientGeometry {
|
||||
struct BasicGeometry basic;
|
||||
int bw;
|
||||
};
|
||||
|
||||
struct ClientSizeHints {
|
||||
float mina, maxa;
|
||||
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
|
||||
};
|
||||
|
||||
struct ClientState {
|
||||
char name[256];
|
||||
int isfixed, isfloating, isurgent, neverfocus, isfullscreen;
|
||||
struct ClientGeometry geometry;
|
||||
};
|
||||
|
||||
struct Client {
|
||||
struct ClientState state;
|
||||
struct ClientSizeHints size_hints;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
#include "state.h"
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef _STATE_H
|
||||
#define _STATE_H
|
||||
|
||||
struct BasicGeometry {
|
||||
int x, y, w, h;
|
||||
};
|
||||
|
||||
struct ClientGeometry {
|
||||
struct BasicGeometry basic;
|
||||
int bw;
|
||||
};
|
||||
|
||||
struct ClientSizeHints {
|
||||
float mina, maxa;
|
||||
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
|
||||
};
|
||||
|
||||
struct ClientState {
|
||||
char name[256];
|
||||
int isfixed, isfloating, isurgent, neverfocus, isfullscreen;
|
||||
struct ClientGeometry geometry;
|
||||
};
|
||||
|
||||
#endif // _STATE_H
|
Loading…
Reference in New Issue