diff options
author | Aurélien Aptel | 2010-08-30 15:28:29 +0200 |
---|---|---|
committer | Aurélien Aptel | 2010-08-30 15:28:29 +0200 |
commit | d67825456cdc2920d81f678ba4116ac244b51792 (patch) | |
tree | f0efa9d95390aadf300560f0a541742ebb15b5f5 /st.c | |
parent | 3403dd9c7ce882bf3941b6979ad13da538740409 (diff) | |
download | aur-d67825456cdc2920d81f678ba4116ac244b51792.tar.gz |
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* |