Improvements to handle cursors.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36802 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
espectador 2013-07-02 16:57:54 +00:00
parent d7dc57f31a
commit c4080b3b73
3 changed files with 18 additions and 3 deletions

View file

@ -3968,6 +3968,10 @@ resetCursorRectsForView(NSView *theView)
{
GSTrackingRect *r =(GSTrackingRect*)[theEvent userData];
NSCursor *c = (NSCursor*)[r owner];
// Don't update the cursor if the window isn't the key window.
if (!_f.is_key)
break;
if ([theEvent trackingNumber]) // It's a mouse entered
{