NSWindow -sendEvent:becomesKeyOnlyIfNeeded now sends mouseDragged events to _lastView, rather than view (if exists) underneath mouse

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20569 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
arobert 2005-01-17 02:12:05 +00:00
parent 418ce5d5c4
commit b12025c583
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2004-01-17 Adrian Robert <arobert@cogsci.ucsd.edu>
* Source/NSWindow.m (-sendEvent:becomesKeyOnlyIfNeeded:): Give
mouseDragged events to _lastView rather than view (if exists)
underneath mouse.
2004-01-17 Adrian Robert <arobert@cogsci.ucsd.edu> 2004-01-17 Adrian Robert <arobert@cogsci.ucsd.edu>
* Source/NSApplication.m * Source/NSApplication.m

View file

@ -3034,16 +3034,13 @@ resetCursorRectsForView(NSView *theView)
switch (type) switch (type)
{ {
case NSLeftMouseDragged: case NSLeftMouseDragged:
v = [_wv hitTest: [theEvent locationInWindow]]; [_lastView mouseDragged: theEvent];
[v mouseDragged: theEvent];
break; break;
case NSOtherMouseDragged: case NSOtherMouseDragged:
v = [_wv hitTest: [theEvent locationInWindow]]; [_lastView otherMouseDragged: theEvent];
[v otherMouseDragged: theEvent];
break; break;
case NSRightMouseDragged: case NSRightMouseDragged:
v = [_wv hitTest: [theEvent locationInWindow]]; [_lastView rightMouseDragged: theEvent];
[v rightMouseDragged: theEvent];
break; break;
default: default:
if (_f.accepts_mouse_moved) if (_f.accepts_mouse_moved)