summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
-rw-r--r--src/Fl_Window_Driver.cxx8
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$".
//