From 44f6012ad85c889b49d354af7f48834a669f2ccd Mon Sep 17 00:00:00 2001 From: DEliasVilelaC Date: Sun, 20 Feb 2022 20:52:08 -0500 Subject: [PATCH] fix: fix cursors blink --- config.def.h | 3 +-- x.c | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index 4a257ecdd298c970a26cebf9bd281ffdcf7b4518..39f7037ba919c713c645046f04b94051f5537452 100644 --- 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 index 5bd39a38b164431d26d6413ec9b5090ea40f2dbd..a76ee7b9a2eb7e2474adf9c4eff1ca3fff45eae5 100644 --- 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':