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

Unified Diff: components/mus/ws/connection_manager.cc

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 4 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: components/mus/ws/connection_manager.cc
diff --git a/components/mus/ws/connection_manager.cc b/components/mus/ws/connection_manager.cc
index a710d9fa1b7424d326ebc61ebcc5241e07585679..1b7cb7dc5765053f02c723e33da58ca6151aebd6 100644
--- a/components/mus/ws/connection_manager.cc
+++ b/components/mus/ws/connection_manager.cc
@@ -527,6 +527,12 @@ void ConnectionManager::OnWillChangeWindowVisibility(ServerWindow* window) {
}
}
+void ConnectionManager::OnWindowVisibilityChanged(ServerWindow* window) {
+ Display* display = display_manager_->GetDisplayContaining(window);
+ if (display)
+ display->ReleaseCaptureForModalWindow(window);
+}
+
void ConnectionManager::OnWindowPredefinedCursorChanged(ServerWindow* window,
int32_t cursor_id) {
if (in_destructor_)

Powered by Google App Engine
This is Rietveld 408576698