From b4e57e0e26a99d236aac53246150090ff31ffcd1 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 17 Feb 2016 23:54:09 +0000 Subject: 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 --- src/drivers/X11/Fl_X11_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3