Index: chrome/browser/ui/views/tabs/base_tab_strip.cc |
=================================================================== |
--- chrome/browser/ui/views/tabs/base_tab_strip.cc (revision 85284) |
+++ chrome/browser/ui/views/tabs/base_tab_strip.cc (working copy) |
@@ -94,15 +94,14 @@ |
// This can be null during shutdown. See http://crbug.com/42737. |
if (!widget) |
return; |
+ |
+ widget->ResetLastMouseMoveFlag(); |
+ |
// Force the close button (that slides under the mouse) to highlight by |
// saying the mouse just moved, but sending the same coordinates. |
DWORD pos = GetMessagePos(); |
POINT cursor_point = {GET_X_LPARAM(pos), GET_Y_LPARAM(pos)}; |
MapWindowPoints(NULL, widget->GetNativeView(), &cursor_point, 1); |
- |
- static_cast<views::WidgetWin*>(widget)->ResetLastMouseMoveFlag(); |
- // Return to message loop - otherwise we may disrupt some operation that's |
- // in progress. |
SendMessage(widget->GetNativeView(), WM_MOUSEMOVE, 0, |
MAKELPARAM(cursor_point.x, cursor_point.y)); |
#else |