* Source/NSCursor.m (-mouseEntered:, -mouseExited:):

Add better debug output.
* Source/NSWindow.m (-_checkCursorRectangles:forEvent:): Add
hack that updates cursor rectangles more correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37022 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2013-08-27 21:00:42 +00:00
parent cc4fbf9642
commit 645a552a58
3 changed files with 19 additions and 2 deletions

View file

@ -434,6 +434,8 @@ backgroundColorHint:(NSColor *)bg
*/
- (void) mouseEntered: (NSEvent*)theEvent
{
NSDebugLLog(@"NSCursor", @"Cursor mouseEntered:enter %d exit %d",
_cursor_flags.is_set_on_mouse_entered, _cursor_flags.is_set_on_mouse_exited);
if (_cursor_flags.is_set_on_mouse_entered == YES)
{
[self set];
@ -454,7 +456,8 @@ backgroundColorHint:(NSColor *)bg
*/
- (void) mouseExited: (NSEvent*)theEvent
{
NSDebugLLog(@"NSCursor", @"Cursor mouseExited:");
NSDebugLLog(@"NSCursor", @"Cursor mouseExited: enter %d exit %d",
_cursor_flags.is_set_on_mouse_entered, _cursor_flags.is_set_on_mouse_exited);
if (_cursor_flags.is_set_on_mouse_exited == YES)
{
[self set];