* Source/NSView.m (-_viewWillMoveToWindow:): Move the invalidation of

the coordinate transformations and the cursor rects before the
window test. Remove calls to coordinate invalidation from other places.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33347 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-06-19 10:04:24 +00:00
parent b8f6fae91f
commit f45090d8d4
2 changed files with 12 additions and 8 deletions

View file

@ -394,6 +394,15 @@ GSSetDragTypes(NSView* obj, NSArray *types)
BOOL old_allocate_gstate;
[self viewWillMoveToWindow: newWindow];
if (_coordinates_valid)
{
(*invalidateImp)(self, invalidateSel);
}
if (_rFlags.has_currects != 0)
{
[self discardCursorRects];
}
if (newWindow == _window)
{
return;
@ -406,14 +415,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[self releaseGState];
_allocate_gstate = old_allocate_gstate;
if (_coordinates_valid)
{
(*invalidateImp)(self, invalidateSel);
}
if (_rFlags.has_currects != 0)
{
[self discardCursorRects];
}
if (_rFlags.has_draginfo)
{
NSArray *t = GSGetDragTypes(self);