-
Mike Conley authored
Bug 1557710 - Fire eMouseExitFromWidget when transitioning from a draggable to a non-draggable non-client region on Windows. r=jmathies We need to do this in order to not override the mouse cursor that we set in the widget layer when hit-testing in the non-client region. We were accidentally overriding before because the PresShell normally queues up a synthetic mousemove event when the mouse is moving within the client region. That mousemove cause the EventStateManager to update the cursor to match Gecko's reckoning of the cursor CSS style of the underlying frame (which overrides the cursor we may have set in the Windows non-client region hittest - for example, one of the window resize cursors). By clearing the mMouseInDraggableArea boolean when transitioning from a draggable to non-draggable region in the non-client region, we make sure that we process the WM_MOUSELEAVE message, which sends the eMouseExitFromWidget event into Gecko, which effectively cancels handling of the synthetic mousemove. Differential Revision: https://phabricator.services.mozilla.com/D37421 --HG-- extra : moz-landing-system : lando
1160914b