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

Unified Diff: components/exo/pointer.cc

Issue 2935753002: exo: Update cursor on wl_pointer::set_cursor (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index 7f1d352bd13f2bbd033db9fde2afaf30d1d60eb6..637ecb1bf43faa18c56205b2d6e6cd70d7003d26 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -133,8 +133,11 @@ void Pointer::SetCursor(Surface* surface, const gfx::Point& hotspot) {
cursor_changed = true;
// Early out if cursor did not change.
- if (!cursor_changed)
+ if (!cursor_changed) {
+ // Cursor scale or rotation may have changed.
+ UpdateCursor();
return;
+ }
// If |surface_| is set then asynchronously capture a snapshot of cursor,
// otherwise cancel pending capture and immediately set the cursor to "none".
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698