Skip to content

Commit

Permalink
Adding simple version of the anysize patch ref. #35
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkeby committed Jul 29, 2021
1 parent eccd7fa commit f643835
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions patches.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f643835

Please sign in to comment.