Tell Cocoa explicitly that we want to see mouse move events when the pointer enters our window, so that we can change the cursor as needed. Bug 161794, patch by nhamblen@mac.com, r=bryner [affects Camino build only]

This commit is contained in:
bryner%netscape.com 2003-04-21 23:06:08 +00:00
Родитель 4e18cb33f7
Коммит e6a0e0aa38
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -2648,12 +2648,17 @@ nsChildView::Idle()
{
// checks to see if we should change to the hand cursor
[self flagsChanged:theEvent];
// we need to forward mouse move events to gecko when the mouse
// is over a gecko view
[[self window] setAcceptsMouseMovedEvents: YES];
}
- (void)mouseExited:(NSEvent*)theEvent
{
// checks to see if we should change from the hand cursor
[self flagsChanged:theEvent];
// no need to monitor mouse movements outside of the gecko view
[[self window] setAcceptsMouseMovedEvents: NO];
}
- (void)rightMouseDown:(NSEvent *)theEvent