From 8aa95bcd966d0cd5a46023904bbcede921c22362 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 18 Jul 2003 03:12:05 +0000 Subject: [PATCH] OS X QuitAppleEvent now correctly exits Fl::run() instead of just exiting. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3047 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 4 ++++ src/Fl_mac.cxx | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 39740a385..6c593969d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ CHANGES IN FLTK 1.1.4 + - QuitAppleEvent now correctly returns from Fl::run() + instead of just exiting. + - Hiding the first created OpenGL context was not + possible. FLTK now manages a list of contexts. - FLUID didn't keep the double/single buffer type for windows. - FLTK didn't work with Xft2. diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index 288044f59..d7cb5cf2c 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_mac.cxx,v 1.1.2.48 2003/06/15 06:10:54 easysw Exp $" +// "$Id: Fl_mac.cxx,v 1.1.2.49 2003/07/18 03:12:05 matthiaswm Exp $" // // MacOS specific code for the Fast Light Tool Kit (FLTK). // @@ -640,7 +640,7 @@ static OSErr QuitAppleEventHandler( const AppleEvent *appleEvt, AppleEvent* repl return noErr; // FLTK has not close all windows, so we return to the main program now } } - ExitToShell(); + QuitApplicationEventLoop(); fl_unlock_function(); @@ -1867,6 +1867,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) { // -// End of "$Id: Fl_mac.cxx,v 1.1.2.48 2003/06/15 06:10:54 easysw Exp $". +// End of "$Id: Fl_mac.cxx,v 1.1.2.49 2003/07/18 03:12:05 matthiaswm Exp $". //