Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-20 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current One more observation: The proposed patch has the (IMHO minor) side effect, that you can drag the window away from an open menu, when the fl_aler

Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-13 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current I forgot to mention: I tested this patch on Windows, and it does what I would expect: After closing the fl_alert() window, the menu stays open an

Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-13 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current okay, so here is a patch proposal, based on Stan's code: fltk/src> svn diff fl_ask.cxx Index: fl_ask.cxx ===

Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-12 Thread Michael Sweet
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current Yes, probably we can just do that, however we should also document that Fl::readqueue() is incompatible with Fl::grab()... Link: http://www.flt

Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-12 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current Thanks, Stan, this explains some of the effects, or maybe all. I was just looking into Fl_Menu.cxx and saw that it uses Fl::grab(). At line 503,

Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-12 Thread Stan
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current As an aid to understanding the problem, note that this is a workaround: void alert_cb(void *) { Fl_Window* g = Fl::grab(); Fl::g

Re: [fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-12 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current Tested with fltk-1.1 svn (r5940) on Windows and Linux. Same effect on both. Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current _

[fltk.bugs] [HIGH] STR #1869: Open menu and fl_alert() at the same time hangs the program

2008-02-12 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1869 Version: 1.1-current If a timer event (e.g. fl_add_timeout) starts a user interaction with fl_message(), fl_alert() or maybe others, the program hangs completely (no u