mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:50:38 +00:00
* 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:
parent
b8f6fae91f
commit
f45090d8d4
2 changed files with 12 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue