summaryrefslogtreecommitdiff
path: root/src/defs.h
diff options
context:
space:
mode:
authorAbhinav <abhinav.prsai@gmail.com>2025-06-29 13:56:48 +0100
committerAbhinav <abhinav.prsai@gmail.com>2025-06-29 13:56:48 +0100
commit2119de0d5c617b37c6e09a4ed8d7e8d53a7d714f (patch)
tree9e2b71fa173b68866c84274732148717753ca697 /src/defs.h
parentd016ab80966b0f76bef2075b353c7e50729cb86c (diff)
parentc848f76bcb16670821296b85aead56acf8ae24b3 (diff)
Merge branch 'main' of https://github.com/uint23/sxwm
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/defs.h b/src/defs.h
index 5796214..fc3be0e 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -50,6 +50,8 @@
"8" "\0"\
"9" "\0"
+#define MAX_BINDS 256
+
typedef enum { DRAG_NONE, DRAG_MOVE, DRAG_RESIZE, DRAG_SWAP } DragMode;
typedef void (*EventHandler)(XEvent *);
@@ -119,6 +121,11 @@ typedef struct {
Bool enabled;
} Scratchpad;
+typedef struct {
+ const char *name;
+ void (*fn)(void);
+} CommandEntry;
+
extern void centre_window();
extern void close_focused(void);
extern void dec_gaps(void);