Index: ash/display/mouse_cursor_event_filter.cc |
diff --git a/ash/display/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc |
index fafe89757caab1563ab1c7135812a433e8635f47..dd2e04b63ed7b1464a0c12273e48cbebeec789e0 100644 |
--- a/ash/display/mouse_cursor_event_filter.cc |
+++ b/ash/display/mouse_cursor_event_filter.cc |
@@ -152,6 +152,8 @@ bool MouseCursorEventFilter::WarpMouseCursorIfNecessary( |
if (dst_root->bounds().Contains(point_in_dst_screen)) { |
DCHECK_NE(dst_root, current_root); |
dst_root->MoveCursorTo(point_in_dst_screen); |
+ ash::Shell::GetInstance()->cursor_manager()->SetDeviceScaleFactor( |
+ dst_root->AsRootWindowHostDelegate()->GetDeviceScaleFactor()); |
oshima
2012/09/07 19:52:01
relative position to the root window can change wi
mazda
2012/09/07 22:38:14
Cursor is updated immediately in CompoundEventFilt
oshima
2012/09/07 23:08:20
Ah, right, so you don't need in that case. I still
mazda
2012/09/08 00:27:02
Added the code for handling scale factor change to
|
return true; |
} |
return false; |