Matthias Melcher wrote:
> On 28.02.2011, at 18:57, [email protected] wrote:
>
>> Author: manolo
>> Date: 2011-02-28 09:57:19 -0800 (Mon, 28 Feb 2011)
>> New Revision: 8487
>> Log:
>> The Mac OS Fl_Display_Device constructor now calls fl_open_display(). Thus,
>> all
>> Mac-specific initializations will be done even before main() is started.
>
> Please don't, unless there is an important reason for that.
>
> Fluid for example runs purely as a command line tool when called with
> compile-only flag. If you run it for example from Xcode, it will be
> completely in the background, because we took great care that no display
> connection is made (this is from X11 times wher having no X server is quite
> common). If you open the display connection, if I remember that right, Xcode
> will loose focus, Fluid will appear in the toolbar, then disappear again,
> then the focus goes back to Xcode. Very annoying if you compile in the
> background and continue typing.
Yes, -1 on any kind of window manager stuff happening before main().
We want FLTK apps to be able to be able to run without accessing the
window manager at all if e.g. the command line arguments cause the
app to able to run without creating windows (eg. -help, or pure
command line only operations)
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev