diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-30 15:28:29 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-30 15:28:29 +0200 |
commit | af113bd3fb7b0b54ceae030de4145816e1c17b94 (patch) | |
tree | c20e97feed9a96266a12f5cbb16888734e49e506 /st.c | |
parent | 4f5c7e3a31f9fde83b04c67c310685e1eba0da68 (diff) | |
download | st-af113bd3fb7b0b54ceae030de4145816e1c17b94.tar.gz st-af113bd3fb7b0b54ceae030de4145816e1c17b94.tar.bz2 |
cursor is hid when unfocused.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1129,7 +1129,7 @@ xdrawcursor(void) { xclear(oldx, oldy, oldx, oldy); /* draw the new one */ - if(!(term.c.state & CURSOR_HIDE)) { + if(!(term.c.state & CURSOR_HIDE) && xw.hasfocus) { xdraws(&g.c, g, term.c.x, term.c.y, 1); oldx = term.c.x, oldy = term.c.y; } @@ -1216,6 +1216,7 @@ void focus(XEvent *ev) { if((xw.hasfocus = ev->type == FocusIn)) xseturgency(0); + draw(SCREEN_UPDATE); } char* |