diff options
| author | Manolo Gouy <Manolo> | 2016-04-18 16:11:15 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-18 16:11:15 +0000 |
| commit | e790ac96536503c2f89a894f6bda1d5a21fab05d (patch) | |
| tree | e8193b93e972daa18a9df5f732b6369853719101 /src/Fl_Window_Driver.cxx | |
| parent | 0629b40afd8fc49ef2d9db898d190e3a1a508d8d (diff) | |
Move wait_for_expose member variable from class Fl_X to class Fl_Window_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
| -rw-r--r-- | src/Fl_Window_Driver.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index b5ba4c556..13a90f8f0 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -240,6 +240,14 @@ int Fl_Window_Driver::set_cursor(const Fl_RGB_Image*, int, int) { return 0; } +void Fl_Window_Driver::wait_for_expose() { + if (!shown()) return; + Fl_X *i = Fl_X::i(pWindow); + while (!i || wait_for_expose_value) { + Fl::wait(); + } +} + // // End of "$Id$". // |
