summaryrefslogtreecommitdiff
path: root/src/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/defs.h b/src/defs.h
index 3b8d7fc..53c7c6a 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -1,7 +1,7 @@
/* See LICENSE for more information on use */
#pragma once
#include <X11/Xlib.h>
-#define SXWM_VERSION "sxwm ver. 1.5"
+#define SXWM_VERSION "sxwm ver. 1.6"
#define SXWM_AUTHOR "(C) Abhinav Prasai 2025"
#define SXWM_LICINFO "See LICENSE for more info"
@@ -18,7 +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 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 }
@@ -68,6 +68,7 @@ typedef struct Client{
Window win;
int x, y, h, w;
int orig_x, orig_y, orig_w, orig_h;
+ int custom_stack_height;
int mon;
int ws;
Bool fixed;
@@ -87,9 +88,11 @@ typedef struct {
float master_width[MAX_MONITORS];
int motion_throttle;
int resize_master_amt;
+ int resize_stack_amt;
int snap_distance;
int bindsn;
Bool new_win_focus;
+ Bool warp_cursor;
Binding binds[256];
char **should_float[256];
char *torun[256];
@@ -112,6 +115,8 @@ extern void quit(void);
extern void reload_config(void);
extern void resize_master_add(void);
extern void resize_master_sub(void);
+extern void resize_stack_add(void);
+extern void resize_stack_sub(void);
extern void toggle_floating(void);
extern void toggle_floating_global(void);
extern void toggle_fullscreen(void);