diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-19 21:58:25 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-19 21:58:25 +0000 |
commit | 795f7ffe21ba774e805479a98be4ca838fb30423 (patch) | |
tree | 79a9a2254afc198d05fd2d7b4544208adfc13957 | |
parent | dfdb0de71597b036b48fc4b292912bab83a02a94 (diff) | |
download | chromium_src-795f7ffe21ba774e805479a98be4ca838fb30423.zip chromium_src-795f7ffe21ba774e805479a98be4ca838fb30423.tar.gz chromium_src-795f7ffe21ba774e805479a98be4ca838fb30423.tar.bz2 |
Fix for a flag error introduced yesterday for non-client messages, which we
do not handle actually but if we were to do it, we may have found out than
an extra bit was sometimes set.
For non-clicent mouse messages, the flag passed to the message procedure
should not be ORed with the mouse-event because it contains the result
of the last hit test instead.
Added flags merged in:
http://src.chromium.org/viewvc/chrome?view=rev&revision=9953
Review URL: http://codereview.chromium.org/21519
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10043 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/views/widget_win.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/views/widget_win.cc b/chrome/views/widget_win.cc index a92d6a0..209184c 100644 --- a/chrome/views/widget_win.cc +++ b/chrome/views/widget_win.cc @@ -572,11 +572,11 @@ LRESULT WidgetWin::OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param) { } void WidgetWin::OnNCLButtonDblClk(UINT flags, const CPoint& point) { - SetMsgHandled(ProcessMousePressed(point, flags | MK_LBUTTON, true, true)); + SetMsgHandled(ProcessMousePressed(point, MK_LBUTTON, true, true)); } void WidgetWin::OnNCLButtonDown(UINT flags, const CPoint& point) { - SetMsgHandled(ProcessMousePressed(point, flags | MK_LBUTTON, false, true)); + SetMsgHandled(ProcessMousePressed(point, MK_LBUTTON, false, true)); } void WidgetWin::OnNCLButtonUp(UINT flags, const CPoint& point) { @@ -584,11 +584,11 @@ void WidgetWin::OnNCLButtonUp(UINT flags, const CPoint& point) { } void WidgetWin::OnNCMButtonDblClk(UINT flags, const CPoint& point) { - SetMsgHandled(ProcessMousePressed(point, flags | MK_MBUTTON, true, true)); + SetMsgHandled(ProcessMousePressed(point, MK_MBUTTON, true, true)); } void WidgetWin::OnNCMButtonDown(UINT flags, const CPoint& point) { - SetMsgHandled(ProcessMousePressed(point, flags | MK_MBUTTON, false, true)); + SetMsgHandled(ProcessMousePressed(point, MK_MBUTTON, false, true)); } void WidgetWin::OnNCMButtonUp(UINT flags, const CPoint& point) { @@ -613,11 +613,11 @@ LRESULT WidgetWin::OnNCMouseMove(UINT flags, const CPoint& point) { } void WidgetWin::OnNCRButtonDblClk(UINT flags, const CPoint& point) { - SetMsgHandled(ProcessMousePressed(point, flags | MK_RBUTTON, true, true)); + SetMsgHandled(ProcessMousePressed(point, MK_RBUTTON, true, true)); } void WidgetWin::OnNCRButtonDown(UINT flags, const CPoint& point) { - SetMsgHandled(ProcessMousePressed(point, flags | MK_RBUTTON, false, true)); + SetMsgHandled(ProcessMousePressed(point, MK_RBUTTON, false, true)); } void WidgetWin::OnNCRButtonUp(UINT flags, const CPoint& point) { |