commit f643835542de091261bc9e53eaa34f57c6823a81
parent eccd7fac9e33189b8872f0b6b915d7555a99ca79
Author: bakkeby <bakkeby@gmail.com>
Date: Thu, 29 Jul 2021 12:22:44 +0200
Adding simple version of the anysize patch ref. #35
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/patches.def.h b/patches.def.h
@@ -43,6 +43,11 @@
*/
#define ANYSIZE_NOBAR_PATCH 0
+/* A simple variant of the anysize patch that only changes the resize hints to allow the window to
+ * be resized to any size.
+ */
+#define ANYSIZE_SIMPLE_PATCH 0
+
/* This patch allows the use of a blinking cursor.
* Only cursor styles 0, 1, 3, 5, and 7 blink. Set cursorstyle accordingly.
* Cursor styles are defined here:
diff --git a/x.c b/x.c
@@ -985,7 +985,7 @@ xhints(void)
sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize;
sizeh->height = win.h;
sizeh->width = win.w;
- #if ANYSIZE_PATCH
+ #if ANYSIZE_PATCH || ANYSIZE_SIMPLE_PATCH
sizeh->height_inc = 1;
sizeh->width_inc = 1;
#else