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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 70383014: Fixes cursor hiding bug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « ui/views/widget/desktop_aura/desktop_root_window_host_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698