diff options
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index cde608714..ccafa20d5 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1143,6 +1143,7 @@ static void cocoaMouseHandler(NSEvent *theEvent) } break; case NSEventTypeMouseEntered : + if ([theEvent window]) update_e_xy_and_e_xy_root([theEvent window]); Fl::handle(FL_ENTER, window); break; case NSEventTypeMouseExited : @@ -1465,7 +1466,6 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; Fl_Window *window = [nsw getFl_Window]; Fl::first_window(window); if (!window->parent()) [nsw orderFront:nil]; - update_e_xy_and_e_xy_root(nsw); if (fl_sys_menu_bar && Fl_MacOS_Sys_Menu_Bar_Driver::window_menu_style()) { // select the corresponding Window menu item int index = Fl_MacOS_Sys_Menu_Bar_Driver::driver()->first_window_menu_item; |
