mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 12:21:55 +00:00
* 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:
parent
fe851e6710
commit
110369a500
2 changed files with 11 additions and 2 deletions
|
@ -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>
|
2006-11-20 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
* Source/NSTextView_actions.m: Change cursor movement implementations
|
* Source/NSTextView_actions.m: Change cursor movement implementations
|
||||||
|
|
|
@ -3596,16 +3596,20 @@ resetCursorRectsForView(NSView *theView)
|
||||||
{
|
{
|
||||||
BOOL isEntry;
|
BOOL isEntry;
|
||||||
|
|
||||||
|
dragInfo = [GSServerForWindow(self) dragInfo];
|
||||||
v = [_wv hitTest: [theEvent locationInWindow]];
|
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];
|
v = [v superview];
|
||||||
}
|
}
|
||||||
if (v == nil)
|
if (v == nil)
|
||||||
{
|
{
|
||||||
v = _wv;
|
v = _wv;
|
||||||
}
|
}
|
||||||
dragInfo = [GSServerForWindow(self) dragInfo];
|
|
||||||
if (_lastDragView == v)
|
if (_lastDragView == v)
|
||||||
{
|
{
|
||||||
isEntry = NO;
|
isEntry = NO;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue