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

Unified Diff: services/ui/ws/server_window.cc

Issue 2680883002: Fixes bugs in cursor handling (Closed)
Patch Set: Created 3 years, 10 months 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 | « services/ui/ws/event_dispatcher_delegate.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window.cc
diff --git a/services/ui/ws/server_window.cc b/services/ui/ws/server_window.cc
index d52bf66ee350fc08c7b57dc8fa989b6bc73c7cc9..64f79e26433a72fb031b6da5422cd2adbf15dcc3 100644
--- a/services/ui/ws/server_window.cc
+++ b/services/ui/ws/server_window.cc
@@ -31,8 +31,10 @@ ServerWindow::ServerWindow(ServerWindowDelegate* delegate,
transient_parent_(nullptr),
is_modal_(false),
visible_(false),
- cursor_id_(mojom::Cursor::CURSOR_NULL),
- non_client_cursor_id_(mojom::Cursor::CURSOR_NULL),
+ // Default to POINTER as CURSOR_NULL doesn't change the cursor, it leaves
+ // the last non-null cursor.
+ cursor_id_(mojom::Cursor::POINTER),
+ non_client_cursor_id_(mojom::Cursor::POINTER),
opacity_(1),
can_focus_(true),
properties_(properties),
« no previous file with comments | « services/ui/ws/event_dispatcher_delegate.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698