aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.c b/st.c
index f42797f..73121ef 100644
--- a/st.c
+++ b/st.c
@@ -1129,7 +1129,7 @@ xdrawcursor(void) {
1129 xclear(oldx, oldy, oldx, oldy); 1129 xclear(oldx, oldy, oldx, oldy);
1130 1130
1131 /* draw the new one */ 1131 /* draw the new one */
1132 if(!(term.c.state & CURSOR_HIDE)) { 1132 if(!(term.c.state & CURSOR_HIDE) && xw.hasfocus) {
1133 xdraws(&g.c, g, term.c.x, term.c.y, 1); 1133 xdraws(&g.c, g, term.c.x, term.c.y, 1);
1134 oldx = term.c.x, oldy = term.c.y; 1134 oldx = term.c.x, oldy = term.c.y;
1135 } 1135 }
@@ -1216,6 +1216,7 @@ void
1216focus(XEvent *ev) { 1216focus(XEvent *ev) {
1217 if((xw.hasfocus = ev->type == FocusIn)) 1217 if((xw.hasfocus = ev->type == FocusIn))
1218 xseturgency(0); 1218 xseturgency(0);
1219 draw(SCREEN_UPDATE);
1219} 1220}
1220 1221
1221char* 1222char*