fix invalidateCursorRectsForView: to update cursor rects for a view that didn't previously have any

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39315 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2016-01-27 17:34:25 +00:00
parent cb1fbe251d
commit acc4405cfc
2 changed files with 7 additions and 2 deletions

View file

@ -1,10 +1,15 @@
2016-01-27 Doug Simons <doug.simons@testplant.com>
* Source/NSWindow.m: Fix -invalidateCursorRectsForView: to
update cursor rects for a view that didn't previously have any.
2015-11-25 Doug Simons <doug.simons@testplant.com>
* Source/NSColorPanel.m: Fix -dragColor:withEvent:fromView: to
show a correct color swatch while dragging on Windows (previously
the dragged swatch always appeared black).
2015-11-23 Doug Simons <doug.simons@testplant.com>
2015-11-23 Doug Simons <doug.simons@testplant.com>
* Source/NSColorPanel.m: Improve the user experience when using
the magnifying glass to select a color from the screen. Also,

View file

@ -2765,6 +2765,7 @@ discardCursorRectsForView(NSView *theView)
if (aView->_rFlags.valid_rects)
{
[aView discardCursorRects];
}
if (_f.cursor_rects_valid)
{
@ -2783,7 +2784,6 @@ discardCursorRectsForView(NSView *theView)
}
_f.cursor_rects_valid = NO;
}
}
}
static void