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

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

Issue 111043002: Cursor state should be global for desktop Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test added Created 7 years 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
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 12ca812f0b7969ff76ce617796bce67a8812795b..c324b732a38b2efbeabc73fd53dc18b8f5f56f9e 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
@@ -151,6 +151,12 @@ void DesktopRootWindowHostWin::OnRootWindowCreated(
const Widget::InitParams& params) {
root_window_ = root;
+ // The cursor is not necessarily visible when the root window is created.
+ aura::client::CursorClient* cursor_client =
+ aura::client::GetCursorClient(root_window_->window());
+ if (cursor_client)
+ is_cursor_visible_ = cursor_client->IsCursorVisible();
+
root_window_->window()->SetProperty(kContentWindowForRootWindow,
content_window_);
root_window_->window()->SetProperty(kDesktopRootWindowHostKey, this);

Powered by Google App Engine
This is Rietveld 408576698