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

@ -490,9 +490,13 @@ backgroundColorHint:(NSColor *)bg
*/
- (void) push
{
[gnustep_gui_cursor_stack addObject: gnustep_gui_current_cursor];
[self set];
NSDebugLLog(@"NSCursor", @"Cursor push %p", _cid);
// If this is the current cursor, don't set it again.
if (gnustep_gui_current_cursor != self)
{
[gnustep_gui_cursor_stack addObject: gnustep_gui_current_cursor];
[self set];
NSDebugLLog(@"NSCursor", @"Cursor push %p", _cid);
}
}
/**<p>Sets the NSCursor as the current cursor.</p>