diff options
| author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-02-15 19:33:48 +0100 |
|---|---|---|
| committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-02-15 19:33:48 +0100 |
| commit | be2877cd042eaf5d0f7dda102f526357aa577232 (patch) | |
| tree | d4da30d5797e6b9ebece1d3b0348631ac906acfd /st.c | |
| parent | document possible configuration. (diff) | |
| download | st-be2877cd042eaf5d0f7dda102f526357aa577232.tar.gz st-be2877cd042eaf5d0f7dda102f526357aa577232.zip | |
show dark cursor when unfocused.
Diffstat (limited to '')
| -rw-r--r-- | st.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1826,10 +1826,14 @@ xdrawcursor(void) { | |||
| 1826 | xcopy(oldx, oldy, 1, 1); | 1826 | xcopy(oldx, oldy, 1, 1); |
| 1827 | 1827 | ||
| 1828 | /* draw the new one */ | 1828 | /* draw the new one */ |
| 1829 | if(!(term.c.state & CURSOR_HIDE) && (xw.state & WIN_FOCUSED)) { | 1829 | if(!(term.c.state & CURSOR_HIDE)) { |
| 1830 | sl = utf8size(g.c); | 1830 | if(!(xw.state & WIN_FOCUSED)) |
| 1831 | g.bg = DefaultUCS; | ||
| 1832 | |||
| 1831 | if(IS_SET(MODE_REVERSE)) | 1833 | if(IS_SET(MODE_REVERSE)) |
| 1832 | g.mode |= ATTR_REVERSE, g.fg = DefaultCS, g.bg = DefaultFG; | 1834 | g.mode |= ATTR_REVERSE, g.fg = DefaultCS, g.bg = DefaultFG; |
| 1835 | |||
| 1836 | sl = utf8size(g.c); | ||
| 1833 | xdraws(g.c, g, term.c.x, term.c.y, 1, sl); | 1837 | xdraws(g.c, g, term.c.x, term.c.y, 1, sl); |
| 1834 | oldx = term.c.x, oldy = term.c.y; | 1838 | oldx = term.c.x, oldy = term.c.y; |
| 1835 | } | 1839 | } |
