Add module "src/state.c"

This commit is contained in:
Alex Kotov 2021-11-21 00:34:34 +05:00
parent b68a956f1e
commit c941891351
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 27 additions and 20 deletions

View File

@ -25,6 +25,7 @@ MODULES_SRC = \
src/layouts.c \
src/settings.c \
src/spawn.c \
src/state.c \
src/unit.c \
src/util.c

View File

@ -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;

1
src/state.c Normal file
View File

@ -0,0 +1 @@
#include "state.h"

24
src/state.h Normal file
View File

@ -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