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