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

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

Issue 2712203002: c++ / mojo changes for 'external window mode'
Patch Set: addressed sky/fwang feedback (take 5), simpler mus_demo changes / passing unittests Created 3 years, 9 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
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 8bcba9bdff609e41ad46a6798a569cd83c50a86f..bd91a27b476e3550a1cc1902881899197cc47557 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -576,7 +576,7 @@ void WindowServer::FinishOperation() {
void WindowServer::UpdateNativeCursorFromMouseLocation(ServerWindow* window) {
WindowManagerDisplayRoot* display_root =
display_manager_->GetWindowManagerDisplayRoot(window);
- if (display_root) {
+ if (display_root && display_root->window_manager_state()) {
EventDispatcher* event_dispatcher =
display_root->window_manager_state()->event_dispatcher();
event_dispatcher->UpdateCursorProviderByLastKnownLocation();
@@ -662,7 +662,7 @@ void WindowServer::OnWindowHierarchyChanged(ServerWindow* window,
WindowManagerDisplayRoot* display_root =
display_manager_->GetWindowManagerDisplayRoot(window);
- if (display_root)
+ if (display_root && display_root->window_manager_state())
display_root->window_manager_state()
->ReleaseCaptureBlockedByAnyModalWindow();

Powered by Google App Engine
This is Rietveld 408576698