* Source/NSWindow.m (sendEvent:): Fix dragging for views which accept

dragging with subviews which accept dragging.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24143 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-11-21 13:46:18 +00:00
parent 9f633f60f6
commit 8e09c9de77
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-11-21 Matt Rice <ratmice@gmail.com>
* Source/NSWindow.m (sendEvent:): Fix dragging for views which accept
dragging with subviews which accept dragging.
2006-11-20 Matt Rice <ratmice@gmail.com>
* Source/NSTextView_actions.m: Change cursor movement implementations

View file

@ -3596,16 +3596,20 @@ resetCursorRectsForView(NSView *theView)
{
BOOL isEntry;
dragInfo = [GSServerForWindow(self) dragInfo];
v = [_wv hitTest: [theEvent locationInWindow]];
while (v != nil && ((NSViewPtr)v)->_rFlags.has_draginfo == 0)
while (v != nil)
{
if (((NSViewPtr)v)->_rFlags.has_draginfo != 0
&& GSViewAcceptsDrag(v, dragInfo))
break;
v = [v superview];
}
if (v == nil)
{
v = _wv;
}
dragInfo = [GSServerForWindow(self) dragInfo];
if (_lastDragView == v)
{
isEntry = NO;