Revert "Restore cursor when exiting alt mode."

This reverts commit 52900255d9.
This commit is contained in:
bakkeby 2021-05-11 15:42:47 +02:00
parent 52900255d9
commit 2d59f21271
3 changed files with 0 additions and 13 deletions

2
st.c
View File

@ -1379,8 +1379,6 @@ tswapscreen(void)
term.images_alt = im; term.images_alt = im;
#endif // SIXEL_PATCH #endif // SIXEL_PATCH
term.mode ^= MODE_ALTSCREEN; term.mode ^= MODE_ALTSCREEN;
if (!IS_SET(MODE_ALTSCREEN))
xsetdefaultcursor();
tfulldirt(); tfulldirt();
} }

1
win.h
View File

@ -43,7 +43,6 @@ int xsetcolorname(int, const char *);
void xseticontitle(char *); void xseticontitle(char *);
void xsettitle(char *); void xsettitle(char *);
int xsetcursor(int); int xsetcursor(int);
void xsetdefaultcursor(void);
void xsetmode(int, unsigned int); void xsetmode(int, unsigned int);
void xsetpointermotion(int); void xsetpointermotion(int);
void xsetsel(char *); void xsetsel(char *);

10
x.c
View File

@ -2414,16 +2414,6 @@ xsetcursor(int cursor)
return 0; return 0;
} }
void
xsetdefaultcursor(void)
{
#if BLINKING_CURSOR_PATCH
xsetcursor(cursorstyle);
#else
xsetcursor(cursorshape);
#endif // BLINKING_CURSOR_PATCH
}
void void
xseturgency(int add) xseturgency(int add)
{ {