redraw entire splash window if a new message is to be displayed but the window is not currently visible

git-svn-id: svn://localhost/ardour2/branches/3.0@13636 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-11 01:21:17 +00:00
parent cb55bd1a52
commit a66b020331
1 changed files with 6 additions and 2 deletions

View File

@ -198,11 +198,15 @@ Splash::message (const string& msg)
layout->set_markup (str);
Glib::RefPtr<Gdk::Window> win = darea.get_window();
if (win) {
expose_done = false;
win->invalidate_rect (Gdk::Rectangle (0, darea.get_height() - 30, darea.get_width(), 30), true);
if (win->is_visible ()) {
win->invalidate_rect (Gdk::Rectangle (0, darea.get_height() - 30, darea.get_width(), 30), true);
} else {
darea.queue_draw ();
}
while (!expose_done) {
gtk_main_iteration ();