mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 01:01:21 +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
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
* Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this
|
* Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this
|
||||||
methods plus a few helpers. We pass now all the frame/bounds test cases.
|
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>
|
2011-06-16 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
|
|
|
@ -394,6 +394,15 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
BOOL old_allocate_gstate;
|
BOOL old_allocate_gstate;
|
||||||
|
|
||||||
[self viewWillMoveToWindow: newWindow];
|
[self viewWillMoveToWindow: newWindow];
|
||||||
|
if (_coordinates_valid)
|
||||||
|
{
|
||||||
|
(*invalidateImp)(self, invalidateSel);
|
||||||
|
}
|
||||||
|
if (_rFlags.has_currects != 0)
|
||||||
|
{
|
||||||
|
[self discardCursorRects];
|
||||||
|
}
|
||||||
|
|
||||||
if (newWindow == _window)
|
if (newWindow == _window)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -406,14 +415,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
[self releaseGState];
|
[self releaseGState];
|
||||||
_allocate_gstate = old_allocate_gstate;
|
_allocate_gstate = old_allocate_gstate;
|
||||||
|
|
||||||
if (_coordinates_valid)
|
|
||||||
{
|
|
||||||
(*invalidateImp)(self, invalidateSel);
|
|
||||||
}
|
|
||||||
if (_rFlags.has_currects != 0)
|
|
||||||
{
|
|
||||||
[self discardCursorRects];
|
|
||||||
}
|
|
||||||
if (_rFlags.has_draginfo)
|
if (_rFlags.has_draginfo)
|
||||||
{
|
{
|
||||||
NSArray *t = GSGetDragTypes(self);
|
NSArray *t = GSGetDragTypes(self);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue