summaryrefslogtreecommitdiff
path: root/gtk2_ardour/splash.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-11 01:21:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-11 01:21:17 +0000
commita66b0203316c1643c10e388af4bdb9b7ecf47ed2 (patch)
treecad5b31b984227f5c014daf7556b034b9bd76ad9 /gtk2_ardour/splash.cc
parentcb55bd1a52158a7ee8784ad58582252b7ab0b06c (diff)
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
Diffstat (limited to 'gtk2_ardour/splash.cc')
-rw-r--r--gtk2_ardour/splash.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/splash.cc b/gtk2_ardour/splash.cc
index 1a285fc55d..941350646d 100644
--- a/gtk2_ardour/splash.cc
+++ b/gtk2_ardour/splash.cc
@@ -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 ();