mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +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
b1a51425e6
commit
52aee6a0ee
2 changed files with 12 additions and 8 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
* Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this
|
||||
methods plus a few helpers. We pass now all the frame/bounds test cases.
|
||||
* 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.
|
||||
|
||||
2011-06-16 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue