summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 20:18:25 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 20:18:25 +0000
commit467c8f56e084434b74a9c11a45872be6a8f8736e (patch)
treebb6fc4ba6efe22f004a090a77f36fd9913de5cc2 /views
parent60b93eca4cec0e8712aed7f063e5d226c3a346db (diff)
downloadchromium_src-467c8f56e084434b74a9c11a45872be6a8f8736e.zip
chromium_src-467c8f56e084434b74a9c11a45872be6a8f8736e.tar.gz
chromium_src-467c8f56e084434b74a9c11a45872be6a8f8736e.tar.bz2
Fixes bug that could lead to mouse motion events percolating up to
next window when they shouldn't. This manifested itself as buttons highlighting when the mose wasn't over them. BUG=none TEST=none Review URL: http://codereview.chromium.org/454005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/widget_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index 8dd0322..b91d01e 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -748,7 +748,7 @@ gboolean WidgetGtk::OnMotionNotify(GtkWidget* widget, GdkEventMotion* event) {
if (last_mouse_event_was_move_ && last_mouse_move_x_ == screen_loc.x() &&
last_mouse_move_y_ == screen_loc.y()) {
// Don't generate a mouse event for the same location as the last.
- return false;
+ return true;
}
last_mouse_move_x_ = screen_loc.x();
last_mouse_move_y_ = screen_loc.y();