commit 44f6012ad85c889b49d354af7f48834a669f2ccd
parent 4810dba9b85a48219086ea49e006a65768c19216
Author: DEliasVilelaC <danielvilelayo@gmail.com>
Date: Sun, 20 Feb 2022 20:52:08 -0500
fix: fix cursors blink
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -165,8 +165,7 @@ unsigned int defaultrcs = 257;
* 7: Blinking st cursor
* 8: Steady st cursor
*/
-static unsigned int cursorstyle = 1;
-static Rune stcursor = 0x2603; /* snowman (U+2603) */
+static unsigned int cursorshape = 1;
/*
* Default columns and rows numbers
diff --git a/x.c b/x.c
@@ -1681,6 +1681,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og, Line line, int le
case 7: /* Blinking st cursor */
if (IS_SET(MODE_BLINK))
break;
+ }
} else {
XftDrawRect(xw.draw, &drawcol,
borderpx + cx * win.cw,
@@ -2187,7 +2188,7 @@ xrdb_load(void)
XRESOURCE_LOAD_INTEGER("bellvolume", bellvolume);
XRESOURCE_LOAD_INTEGER("borderpx", borderpx);
/* XRESOURCE_LOAD_INTEGER("borderless", borderless); */
- XRESOURCE_LOAD_INTEGER("cursorstyle", cursorstyle);
+ XRESOURCE_LOAD_INTEGER("cursorshape", cursorshape);
/* cursorblinkstate = 1; // in case if cursor shape was changed from a blinking one to a non-blinking */
/* XRESOURCE_LOAD_INTEGER("cursorthickness", cursorthickness); */
@@ -2298,7 +2299,7 @@ main(int argc, char *argv[])
{
xw.l = xw.t = 0;
xw.isfixed = False;
- xsetcursor(cursorstyle);
+ xsetcursor(cursorshape);
ARGBEGIN {
case 'a':