2021-11-20 19:34:34 +00:00
|
|
|
#ifndef _STATE_H
|
|
|
|
#define _STATE_H
|
|
|
|
|
2021-11-20 20:01:49 +00:00
|
|
|
#include <stdbool.h>
|
2021-11-20 19:48:37 +00:00
|
|
|
#include <X11/Xutil.h>
|
|
|
|
|
2021-11-20 19:34:34 +00:00
|
|
|
struct BasicGeometry {
|
|
|
|
int x, y, w, h;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ClientGeometry {
|
|
|
|
struct BasicGeometry basic;
|
|
|
|
int bw;
|
|
|
|
};
|
|
|
|
|
2021-11-20 19:48:37 +00:00
|
|
|
typedef struct ClientSizeHints {
|
2021-11-20 19:34:34 +00:00
|
|
|
float mina, maxa;
|
|
|
|
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
|
2021-11-20 19:48:37 +00:00
|
|
|
} *ClientSizeHints;
|
2021-11-20 19:34:34 +00:00
|
|
|
|
|
|
|
struct ClientState {
|
|
|
|
char name[256];
|
|
|
|
struct ClientGeometry geometry;
|
2021-11-20 20:01:49 +00:00
|
|
|
bool is_fixed, is_floating, is_urgent, never_focus, is_fullscreen;
|
2021-11-20 19:34:34 +00:00
|
|
|
};
|
|
|
|
|
2021-11-20 19:48:37 +00:00
|
|
|
void client_size_hints_update(
|
|
|
|
ClientSizeHints size_hints,
|
|
|
|
const XSizeHints *size
|
|
|
|
);
|
|
|
|
|
2021-11-20 19:34:34 +00:00
|
|
|
#endif // _STATE_H
|