Bug 1653949 - Part 1: Change mExitFrom in WidgetMouseEvent to be Maybe<ExitFrom>; r=smaug
mExitFrom now contains a value only when mMessage is eMouseExitFromWidget Differential Revision: https://phabricator.services.mozilla.com/D88225
This commit is contained in:
@@ -3199,9 +3199,9 @@ void nsWindow::OnLeaveNotifyEvent(GdkEventCrossing* aEvent) {
|
||||
event.mRefPoint = GdkEventCoordsToDevicePixels(aEvent->x, aEvent->y);
|
||||
event.AssignEventTime(GetWidgetEventTime(aEvent->time));
|
||||
|
||||
event.mExitFrom = is_top_level_mouse_exit(mGdkWindow, aEvent)
|
||||
? WidgetMouseEvent::eTopLevel
|
||||
: WidgetMouseEvent::eChild;
|
||||
event.mExitFrom = Some(is_top_level_mouse_exit(mGdkWindow, aEvent)
|
||||
? WidgetMouseEvent::eTopLevel
|
||||
: WidgetMouseEvent::eChild);
|
||||
|
||||
LOG(("OnLeaveNotify: %p\n", (void*)this));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user