diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-05-26 14:03:44 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-05-26 14:03:44 +0000 |
| commit | 9774446d8b6103e5b158a5ffdeb63ce91a608e15 (patch) | |
| tree | cf69cd333edee5c792cb27a2e58362d0ea0bba36 /src | |
| parent | db98aaac869add42f37d46db2e461e665a404dc0 (diff) | |
Move show() after scheme() call in Fl_Window::show(argc, argv) to
eliminate scheme flicker on startup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_arg.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx index ba79f74ac..c6b2e60a7 100644 --- a/src/Fl_arg.cxx +++ b/src/Fl_arg.cxx @@ -233,13 +233,15 @@ void Fl_Window::show(int argc, char **argv) { if (title) {label(title); title = 0;} else if (!label()) label(xclass()); - show(); if (!beenhere) { beenhere = 1; Fl::scheme(Fl::scheme()); // opens display! May call Fl::fatal() } + // Show the window AFTER we have set the colors and scheme. + show(); + #if !defined(WIN32) && !defined(__APPLE__) // set the command string, used by state-saving window managers: int j; |
