mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
53e07cbe85
commit
e931b93591
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue