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

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

Issue 62333024: Merge 235500 "Fixes cursor hiding bug" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/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
===================================================================
--- ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (revision 235767)
+++ ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (working copy)
@@ -64,7 +64,8 @@
should_animate_window_close_(false),
pending_close_(false),
has_non_client_view_(false),
- tooltip_(NULL) {
+ tooltip_(NULL),
+ is_cursor_visible_(true) {
}
DesktopRootWindowHostWin::~DesktopRootWindowHostWin() {
@@ -487,6 +488,9 @@
}
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