summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-01 18:31:23 +0000
committerManolo Gouy <Manolo>2010-12-01 18:31:23 +0000
commit2f8b7e47c2e3b2e3ecabd0711e8daf735f32f09d (patch)
treefffcfc5d687ab3d345fa087321ec23fc9acd93c6 /fluid
parentbbb273cb3a6530673c18f4e98cde324d378f0ee4 (diff)
Should fix STR #2464 by not calling fl_open_display when running fluid in command line mode
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/fluid.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index 4832e2d37..8374a0ef7 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -2352,12 +2352,12 @@ int main(int argc,char **argv) {
make_main_window();
-#ifdef __APPLE__
- fl_open_callback(apple_open_cb);
-#endif // __APPLE__
if (c) set_filename(c);
if (!compile_only) {
+#ifdef __APPLE__
+ fl_open_callback(apple_open_cb);
+#endif // __APPLE__
Fl::visual((Fl_Mode)(FL_DOUBLE|FL_INDEX));
Fl_File_Icon::load_system_icons();
main_window->callback(exit_cb);