diff options
| author | Manolo Gouy <Manolo> | 2018-02-06 17:26:11 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-02-06 17:26:11 +0000 |
| commit | 425ab2e8bc4905959ecc5d38e042ee0e1c3e1771 (patch) | |
| tree | 7e20118535dae2870bc2fb7c4a3b83d12d054af9 /src/drivers/Darwin/Fl_Darwin_System_Driver.H | |
| parent | 4ebaee0f40e30c4da671a9351676e1c9051abbef (diff) | |
Add support for detection and processing of clean program termination request.
The default handling of cmd-Q/Quit program under MacOS was to terminate the
program if all its windows are closed without returning from FLTK's event loop.
This was running against a strong design feature of FLTK that programs
should always complete their event loop and return from main() when cleanly
terminating.
In the new code for the MacOS platform, cmd-Q/Quit program no longer terminates
the program. Instead, the event loop is interrupted and a call to Fl::program_should_quit()
allows to detect that program termination has been requested, if necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Darwin/Fl_Darwin_System_Driver.H')
| -rw-r--r-- | src/drivers/Darwin/Fl_Darwin_System_Driver.H | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.H b/src/drivers/Darwin/Fl_Darwin_System_Driver.H index cec33d2a9..77f38efc0 100644 --- a/src/drivers/Darwin/Fl_Darwin_System_Driver.H +++ b/src/drivers/Darwin/Fl_Darwin_System_Driver.H @@ -4,7 +4,7 @@ // Definition of Apple Darwin system driver // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2016 by Bill Spitzak and others. +// Copyright 2010-2018 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -81,6 +81,8 @@ public: virtual const char *meta_name(); virtual const char *alt_name(); virtual const char *control_name(); + virtual int run_also_windowless(); + virtual int wait_also_windowless(double delay); }; #endif // FL_DARWIN_SYSTEM_DRIVER_H |
