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

Unified Diff: ui/ozone/platform/dri/dri_cursor.cc

Issue 580553002: Remove deprecated cursor event filter for Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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 | « ash/display/mouse_cursor_event_filter_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_cursor.cc
diff --git a/ui/ozone/platform/dri/dri_cursor.cc b/ui/ozone/platform/dri/dri_cursor.cc
index 8314ed79d0f0c225062bc021e518daf38ab8d469..3b05dbc482c98eda1a5e4f7df8723b7253608742 100644
--- a/ui/ozone/platform/dri/dri_cursor.cc
+++ b/ui/ozone/platform/dri/dri_cursor.cc
@@ -68,7 +68,8 @@ void DriCursor::MoveCursorTo(gfx::AcceleratedWidget widget,
DriWindow* window = window_manager_->GetWindow(cursor_window_);
const gfx::Size& size = window->GetBounds().size();
cursor_location_.SetToMax(gfx::PointF(0, 0));
- cursor_location_.SetToMin(gfx::PointF(size.width(), size.height()));
+ // Right and bottom edges are exclusive.
+ cursor_location_.SetToMin(gfx::PointF(size.width() - 1, size.height() - 1));
if (cursor_.get())
hardware_->MoveHardwareCursor(cursor_window_, bitmap_location());
« no previous file with comments | « ash/display/mouse_cursor_event_filter_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698