st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit c089485aa4243ef98b107ba3e26902d0973e9ba3
parent f79ac733f3e70d4b6abdc736ddc9f76c155a6cd4
Author: Bakkeby <bakkeby@gmail.com>
Date:   Thu,  7 Mar 2024 21:43:18 +0100

hidecursor: add config option to disable hidecursor functionality

Diffstat:
Mconfig.def.h | 5+++++
Mx.c | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -112,6 +112,11 @@ static unsigned int blinktimeout = 800; */ static unsigned int cursorthickness = 2; +#if HIDECURSOR_PATCH +/* Hide the X cursor whenever a key is pressed. 0: off, 1: on */ +int hidecursor = 1; +#endif // HIDECURSOR_PATCH + #if BOXDRAW_PATCH /* * 1: render most of the lines/blocks characters without using the font for diff --git a/x.c b/x.c @@ -3447,7 +3447,7 @@ kpress(XEvent *ev) Shortcut *bp; #if HIDECURSOR_PATCH - if (xw.pointerisvisible) { + if (xw.pointerisvisible && hidecursor) { #if OPENURLONCLICK_PATCH #if ANYSIZE_PATCH int x = e->x - win.hborderpx;