mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
hidecursor: add config option to disable hidecursor functionality
This commit is contained in:
parent
f79ac733f3
commit
c089485aa4
@ -112,6 +112,11 @@ static unsigned int blinktimeout = 800;
|
|||||||
*/
|
*/
|
||||||
static unsigned int cursorthickness = 2;
|
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
|
#if BOXDRAW_PATCH
|
||||||
/*
|
/*
|
||||||
* 1: render most of the lines/blocks characters without using the font for
|
* 1: render most of the lines/blocks characters without using the font for
|
||||||
|
2
x.c
2
x.c
@ -3447,7 +3447,7 @@ kpress(XEvent *ev)
|
|||||||
Shortcut *bp;
|
Shortcut *bp;
|
||||||
|
|
||||||
#if HIDECURSOR_PATCH
|
#if HIDECURSOR_PATCH
|
||||||
if (xw.pointerisvisible) {
|
if (xw.pointerisvisible && hidecursor) {
|
||||||
#if OPENURLONCLICK_PATCH
|
#if OPENURLONCLICK_PATCH
|
||||||
#if ANYSIZE_PATCH
|
#if ANYSIZE_PATCH
|
||||||
int x = e->x - win.hborderpx;
|
int x = e->x - win.hborderpx;
|
||||||
|
Loading…
Reference in New Issue
Block a user