revert previous first responder change, but fix where mouseDown: is sent

This commit is contained in:
Christopher Lloyd 2011-01-29 14:41:04 -05:00
parent 347e8ffae1
commit 6b8b6f100e

View File

@ -1916,13 +1916,13 @@ NSString * const NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification
switch([event type]){
case NSLeftMouseDown:{
NSView *view=[_backgroundView hitTest:[event locationInWindow]];
NSView *view=[_backgroundView hitTest:[event locationInWindow]];
/* view gets mouse down event before first responder check */
[view mouseDown:event];
if([view acceptsFirstResponder])
[self makeFirstResponder:view];
if([view acceptsFirstResponder])
[self makeFirstResponder:view];
// Event goes to view, not first responder
[view mouseDown:event];
_mouseDownLocationInWindow=[event locationInWindow];
}