diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp index 7fc46308089bf90142cab791bb807da47effb761..9fc4856e5c1417fe52035c394e2ad77f787adc9d 100644 --- a/Fltk/FlGui.cpp +++ b/Fltk/FlGui.cpp @@ -63,7 +63,10 @@ class drawContextFltk : public drawContextGlobal{ if(make_current) gl->make_current(); gl->redraw(); glFlush(); - FlGui::instance()->check(); + // drawCurrentOpenglWindow is currently only used when filling the pixel + // buffer for bitmap image creation. To avoid spurious asynchronous gui + // events fired while creating the picture, don't call check(): + // FlGui::instance()->check(); } int getFontIndex(const char *fontname) {