summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-19 23:04:28 +0000
committerManolo Gouy <Manolo>2016-03-19 23:04:28 +0000
commit51030530f24c33c59db3084bc2b088d50b2c6627 (patch)
tree7ae4c000e5f5d50b26988df77ae7a3b04318baf7 /src/Fl_Window.cxx
parentc2067d81be322b07ca541dbc564fc6c1ca64025a (diff)
Advancing Albrecht's plan for the Fl_Window_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window.cxx')
-rw-r--r--src/Fl_Window.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index 483eea714..85075b4b3 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -437,7 +437,10 @@ int Fl_Window::decorated_h()
void Fl_Window::flush()
{
- driver()->flush_single();
+ if (!shown()) return;
+ make_current();
+ fl_clip_region(i->region); i->region = 0;
+ draw();
}