Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
index 527a9ca9f50705bde700c4d142677828ad5e94ee..652b81aaaeb7f8c6149fdf10b1b76b576a55d586 100644 |
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
@@ -64,7 +64,8 @@ DesktopRootWindowHostWin::DesktopRootWindowHostWin( |
should_animate_window_close_(false), |
pending_close_(false), |
has_non_client_view_(false), |
- tooltip_(NULL) { |
+ tooltip_(NULL), |
+ is_cursor_visible_(true) { |
} |
DesktopRootWindowHostWin::~DesktopRootWindowHostWin() { |
@@ -488,6 +489,9 @@ void DesktopRootWindowHostWin::UnConfineCursor() { |
} |
void DesktopRootWindowHostWin::OnCursorVisibilityChanged(bool show) { |
+ if (is_cursor_visible_ == show) |
+ return; |
+ is_cursor_visible_ = show; |
::ShowCursor(!!show); |
} |