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:
Adrian Robert 2005-01-17 02:12:05 +00:00
parent b8464ec6d4
commit 57d8fc5b92
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>
* Source/NSApplication.m

View file

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