Fix mouseDown invocation in NSWindow

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12416 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-02-06 10:29:26 +00:00
parent 53e07cbe85
commit e931b93591
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-02-06 Richard Frith-Macdonald <rfm@gnu.org>
* 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 <n.pero@mi.flashnet.it>
* Source/GSSimpleLayoutManager.m

View file

@ -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;