From f643835542de091261bc9e53eaa34f57c6823a81 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Thu, 29 Jul 2021 12:22:44 +0200 Subject: [PATCH] Adding simple version of the anysize patch ref. #35 --- patches.def.h | 5 +++++ x.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/patches.def.h b/patches.def.h index a0bd21c..446c849 100644 --- 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 index 67c6ebb..ed6c6df 100644 --- 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