summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-04 22:09:40 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-04 22:11:23 +0200
commit52fe157384f9a493b7f96f9e1374a56cc7369280 (patch)
tree237bd75b2b916dd7df3540b75b6e01f4399397e6 /x.c
parent4c01cfd24e5f32beb00abaed8d110856559610b0 (diff)
parentfa253f077f19b3220c7655b81bd91e52f4367803 (diff)
downloadst-52fe157384f9a493b7f96f9e1374a56cc7369280.tar.gz
st-52fe157384f9a493b7f96f9e1374a56cc7369280.tar.bz2
st-52fe157384f9a493b7f96f9e1374a56cc7369280.zip
Merge remote-tracking branch 'suckless/master'
Diffstat (limited to 'x.c')
-rw-r--r--x.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/x.c b/x.c
index 761cd76..7bf04e9 100644
--- a/x.c
+++ b/x.c
@@ -1536,8 +1536,8 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og, Line line, int le
/* draw the new one */
if (IS_SET(MODE_FOCUSED)) {
switch (win.cursor) {
- case 7: /* st extension: snowman (U+2603) */
- g.u = 0x2603;
+ case 7: /* st extension */
+ g.u = 0x2603; /* snowman (U+2603) */
/* FALLTHROUGH */
case 0: /* Blinking Block */
case 1: /* Blinking Block (Default) */
@@ -1700,8 +1700,7 @@ xsetmode(int set, unsigned int flags)
int
xsetcursor(int cursor)
{
- DEFAULT(cursor, 1);
- if (!BETWEEN(cursor, 0, 6))
+ if (!BETWEEN(cursor, 0, 7)) /* 7: st extension */
return 1;
win.cursor = cursor;
return 0;
@@ -1993,7 +1992,7 @@ main(int argc, char *argv[])
{
xw.l = xw.t = 0;
xw.isfixed = False;
- win.cursor = cursorshape;
+ xsetcursor(cursorshape);
ARGBEGIN {
case 'a':