summaryrefslogtreecommitdiff
path: root/src/defs.h
diff options
context:
space:
mode:
authoruint23 <72694427+uint23@users.noreply.github.com>2025-05-29 16:28:47 +0100
committerGitHub <noreply@github.com>2025-05-29 16:28:47 +0100
commit556d02be86bf0c85cdd092fb13701d65417ab721 (patch)
tree9e38b2f313d765dd9446a2afcc5f7f8a14b502d6 /src/defs.h
parent8e6309383edd8f8d78c40620a697d48831cd9b44 (diff)
parent39798d62d31f930fcf8b58af951010b077c5ce47 (diff)
Merge branch 'main' into main
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/defs.h b/src/defs.h
index d90ab61..0a71029 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -13,10 +13,12 @@
#define OUT_IN (2 * BORDER_WIDTH)
#define MF_MIN 0.05f
#define MF_MAX 0.95f
+#define MAX_MONITORS 32
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define LENGTH(X) (sizeof X / sizeof X[0])
#define UDIST(a,b) abs((int)(a) - (int)(b))
+# define CLAMP(x, lo, hi) (( (x) < (lo) ) ? (lo) : ( (x) > (hi) ) ? (hi) : (x))
#define MAXCLIENTS 99
#define BIND(mod, key, cmdstr) { (mod), XK_##key, { cmdstr }, False }
#define CALL(mod, key, fnptr) { (mod), XK_##key, { .fn = fnptr }, True }
@@ -71,6 +73,7 @@ typedef struct Client{
Bool fixed;
Bool floating;
Bool fullscreen;
+ Bool mapped;
struct Client *next;
} Client;
@@ -81,7 +84,7 @@ typedef struct {
long border_foc_col;
long border_ufoc_col;
long border_swap_col;
- float master_width;
+ float master_width[MAX_MONITORS];
int motion_throttle;
int resize_master_amt;
int snap_distance;