mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:20:46 +00:00
* 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:
parent
cc4fbf9642
commit
645a552a58
3 changed files with 19 additions and 2 deletions
|
@ -3598,6 +3598,13 @@ resetCursorRectsForView(NSView *theView)
|
|||
|
||||
- (void) _checkCursorRectangles: (NSView*)theView forEvent: (NSEvent*)theEvent
|
||||
{
|
||||
// FIXME: What this method should do is to send exit events before enter events
|
||||
// And all enter events should be sorted from outer to inner. With the current
|
||||
// hack to post the enter events at the end of the queue this is about correct,
|
||||
// as long as nothing else is in the event queue :-(
|
||||
// Most likely similar reasoning should be applied to _checkTrackingRectangles:forEvent:
|
||||
// the best way to achive this seems to be having to separate loops over the hierarchy.
|
||||
|
||||
if (theView->_rFlags.valid_rects)
|
||||
{
|
||||
NSArray *tr = theView->_cursor_rects;
|
||||
|
@ -3641,7 +3648,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
eventNumber: 0
|
||||
trackingNumber: (int)YES
|
||||
userData: (void*)r];
|
||||
[self postEvent: e atStart: YES];
|
||||
[self postEvent: e atStart: NO];
|
||||
}
|
||||
// Mouse exited
|
||||
if ((last) && (!now))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue