> But this code is different! It will not clear the first timer if only > one timer is used! The if-clause should probably go in front to the > "breackMacEventLoop()", or how about this:
I don't follow you. When mac_timer_used is 0, the loop for (int i = 0; i < mac_timer_used; ++i) doesn't run at all, so the new code is equivalent to the old one except for breakMacEventLoop() we don't want to run if no timer was ever created. This is so that fluid can be run in command mode with no access to the window manager whatsoever. > > Actually, I am not entirely sure that we need to break the EventLoop > at all?! > Yes, this is a point I don't understand in all details either. But comment out this event loop break, run the threads demo, and increase the window size with your mouse. You'll be convinced this loop break is indeed useful. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
