summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-17 23:54:09 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-17 23:54:09 +0000
commitb4e57e0e26a99d236aac53246150090ff31ffcd1 (patch)
tree7338d087a7f4a6eb904cbd8009c4407c6990a463 /src
parent4a1662f1da8c57a446c8f19f0204c0048f2e1ba3 (diff)
Fix flush() call (Linux) - makes drawing work again, but still buggy.
With this fix drawing works again under Linux. Tiny diff, but ... Known bugs: opening Fl_Choice dropdown menus crashes the program. In my experience it takes a while (5-10 seconds) before the crash occurs. Maybe an endless loop that eventually "kills" the stack ? git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
index 489d09cb0..4d4d08139 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
@@ -402,7 +402,7 @@ double Fl_X11_Screen_Driver::wait(double time_to_wait)
return ret;
} else {
// do flush first so that user sees the display:
- flush();
+ Fl::flush();
if (Fl::idle && !in_idle) // 'idle' may have been set within flush()
time_to_wait = 0.0;
return fl_wait(time_to_wait);