From 34c7ead270dc2f668a6a90b251f8d3fa2933e597 Mon Sep 17 00:00:00 2001
From: Ruth Sabariego <ruth.sabariego@esat.kuleuven.be>
Date: Tue, 26 Oct 2010 14:19:41 +0000
Subject: [PATCH] don't check() in drawCurrentOpenglWindow

---
 Fltk/FlGui.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp
index 7fc4630808..9fc4856e5c 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)
   { 
-- 
GitLab