mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:00:47 +00:00
Handle remaining problems with cursor rects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23041 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
db7974064c
commit
2b448fe8a2
4 changed files with 12 additions and 21 deletions
|
@ -2344,25 +2344,7 @@ discardCursorRectsForView(NSView *theView)
|
|||
{
|
||||
if (((NSViewPtr)aView)->_rFlags.valid_rects)
|
||||
{
|
||||
unsigned count = [((NSViewPtr)aView)->_cursor_rects count];
|
||||
if (count > 0)
|
||||
{
|
||||
GSTrackingRect *rects[count];
|
||||
unsigned i;
|
||||
|
||||
[((NSViewPtr)aView)->_cursor_rects getObjects: rects];
|
||||
|
||||
for (i = 0; i < count; ++i)
|
||||
{
|
||||
GSTrackingRect *r = rects[i];
|
||||
if (NSMouseInRect(_lastPoint, r->rectangle, NO))
|
||||
{
|
||||
[[r owner] mouseExited: nil];
|
||||
}
|
||||
[r invalidate];
|
||||
}
|
||||
}
|
||||
((NSViewPtr)aView)->_rFlags.valid_rects = 0;
|
||||
[aView discardCursorRects];
|
||||
|
||||
if (_f.cursor_rects_valid)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue