From 067359747d408774e844e666dd1d8ec990ce95d0 Mon Sep 17 00:00:00 2001 From: CaS Date: Wed, 6 Feb 2002 10:29:26 +0000 Subject: [PATCH] Fix mouseDown invocation in NSWindow git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12416 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSWindow.m | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 095d66a61..b00a1ba67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-02-06 Richard Frith-Macdonald + + * Source/NSWindow.m: ([-sendEvent:]) handle mouse down in window if + no view accepts it. ([-mouseDown:]) implement to quietly ignore + event. + Wed Feb 6 02:30:09 2002 Nicola Pero * Source/GSSimpleLayoutManager.m diff --git a/Source/NSWindow.m b/Source/NSWindow.m index c4267d042..f1c2ffffb 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -2623,6 +2623,10 @@ resetCursorRectsForView(NSView *theView) [self update]; } +- (void) mouseDown: (NSEvent*)theEvent +{ + // Quietly discard an unused mouse down. +} - (void) sendEvent: (NSEvent*)theEvent { @@ -2667,6 +2671,10 @@ resetCursorRectsForView(NSView *theView) [v mouseDown: theEvent]; } } + else + { + [self mouseDown: theEvent]; + } } _lastPoint = [theEvent locationInWindow]; break;