Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Unified Diff: ui/aura/root_window.cc

Issue 10830293: Fixes bug where Env/RootWindow would cache the wrong button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 8d3810b9ca6c2671167fd551f9e032cca8e76c52..57b96684bd41fa2872f5ac1ea2fbfa05bda83ffa 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -974,7 +974,8 @@ bool RootWindow::DispatchMouseEventToTarget(ui::MouseEvent* event,
break;
case ui::ET_MOUSE_RELEASED:
mouse_pressed_handler_ = NULL;
- mouse_button_flags_ = event->flags() & kMouseButtonFlagMask;
+ mouse_button_flags_ = event->flags() & kMouseButtonFlagMask &
+ ~event->changed_button_flags();
Env::GetInstance()->set_mouse_button_flags(mouse_button_flags_);
break;
default:
« no previous file with comments | « no previous file | ui/base/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698