summaryrefslogtreecommitdiff
path: root/src/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/defs.h b/src/defs.h
index 24e9f1b..0a71029 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -18,6 +18,7 @@
#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 }
@@ -72,6 +73,7 @@ typedef struct Client{
Bool fixed;
Bool floating;
Bool fullscreen;
+ Bool mapped;
struct Client *next;
} Client;