Adding simple version of the anysize patch ref. #35

This commit is contained in:
bakkeby 2021-07-29 12:22:44 +02:00
parent eccd7fac9e
commit f643835542
2 changed files with 6 additions and 1 deletions

View File

@ -43,6 +43,11 @@
*/ */
#define ANYSIZE_NOBAR_PATCH 0 #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. /* This patch allows the use of a blinking cursor.
* Only cursor styles 0, 1, 3, 5, and 7 blink. Set cursorstyle accordingly. * Only cursor styles 0, 1, 3, 5, and 7 blink. Set cursorstyle accordingly.
* Cursor styles are defined here: * Cursor styles are defined here:

2
x.c
View File

@ -985,7 +985,7 @@ xhints(void)
sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize; sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize;
sizeh->height = win.h; sizeh->height = win.h;
sizeh->width = win.w; sizeh->width = win.w;
#if ANYSIZE_PATCH #if ANYSIZE_PATCH || ANYSIZE_SIMPLE_PATCH
sizeh->height_inc = 1; sizeh->height_inc = 1;
sizeh->width_inc = 1; sizeh->width_inc = 1;
#else #else