From 16ffbb80aee0f67d90b321890ce10669f387640a Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Wed, 20 Jan 2010 14:58:59 +0000 Subject: [PATCH] do not process GSAppKitWindowLeave events for closed windows git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29332 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSWindow.m | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 842145947..613f070d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-20 Riccardo Mottola + + * Source/NSWindow: do not process GSAppKitWindowLeave events for + closed windows + + * Source/NSImage.m: _useFromFile: make extension checking case 2010-01-19 13:49-EST Gregory John Casamento * Source/NSMenu.m: Allow menus attached to popups to come up diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 153743aaf..5c8892298 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -3953,6 +3953,10 @@ resetCursorRectsForView(NSView *theView) break; case GSAppKitWindowLeave: + /* we ignore this event for a window that is already closed */ + if (_f.has_closed == YES); + break; + /* * We need to go through all of the views, and if there * is any with a tracking rectangle then we need to