From c6591fa8569c68e6a7d3490ef00f05ec8d8b4b50 Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Fri, 6 Apr 2012 01:17:20 +0100 Subject: [PATCH 2/2] Consider a redraw on visibility change Ensure that a change in visibility redraws the terminal. This is most notable on startup, when it is possible for ttyread() to read the shell prompt before the window is visible. --- st.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/st.c b/st.c index 0ee9a67..b3ad904 100644 --- a/st.c +++ b/st.c @@ -1912,6 +1912,7 @@ visibility(XEvent *ev) { else if(!(xw.state & WIN_VISIBLE)) /* need a full redraw for next Expose, not just a buf copy */ xw.state |= WIN_VISIBLE | WIN_REDRAW; + draw(); } void -- 1.7.4.4