summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--views/widget/aero_tooltip_manager.cc6
2 files changed, 7 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 30c1c0f..ce6c19e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -67,3 +67,4 @@ Alex Gartrell <alexgartrell@gmail.com>
James Choi <jchoi42@pha.jhu.edu>
Paul Kehrer <paul.l.kehrer@gmail.com>
Chamal De Silva <chamal.desilva@gmail.com>
+Jay Soffian <jaysoffian@gmail.com>
diff --git a/views/widget/aero_tooltip_manager.cc b/views/widget/aero_tooltip_manager.cc
index 9899690..8c50099 100644
--- a/views/widget/aero_tooltip_manager.cc
+++ b/views/widget/aero_tooltip_manager.cc
@@ -33,6 +33,12 @@ void AeroTooltipManager::OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param) {
if (u_msg == WM_MOUSEMOVE || u_msg == WM_NCMOUSEMOVE) {
gfx::Point mouse_pos(l_param);
+ if (u_msg == WM_NCMOUSEMOVE) {
+ // NC message coordinates are in screen coordinates.
+ POINT temp = mouse_pos.ToPOINT();
+ ::MapWindowPoints(HWND_DESKTOP, GetParent(), &temp, 1);
+ mouse_pos.SetPoint(temp.x, temp.y);
+ }
if (last_mouse_x_ != mouse_pos.x() || last_mouse_y_ != mouse_pos.y()) {
last_mouse_x_ = mouse_pos.x();
last_mouse_y_ = mouse_pos.y();