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

Unified Diff: ash/host/ash_window_tree_host_platform.cc

Issue 2741533002: Fix AshWindowTreeHost shutdown for Ozone X11. (Closed)
Patch Set: Add to other PlatformWindow implementations. 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
« no previous file with comments | « no previous file | ui/ozone/platform/cast/platform_window_cast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_platform.cc
diff --git a/ash/host/ash_window_tree_host_platform.cc b/ash/host/ash_window_tree_host_platform.cc
index a268db387a45ff9e24835916bbf2a8df038e468e..e52814565fa78023387d8d87efbf620acc7b1f0b 100644
--- a/ash/host/ash_window_tree_host_platform.cc
+++ b/ash/host/ash_window_tree_host_platform.cc
@@ -75,6 +75,10 @@ void AshWindowTreeHostPlatform::PrepareForShutdown() {
// coordinates.
window()->SetEventTargeter(
std::unique_ptr<ui::EventTargeter>(new ui::NullEventTargeter));
+
+ // Do anything platform specific necessary before shutdown (eg. stop
+ // listening for configuration XEvents).
+ platform_window()->PrepareForShutdown();
}
void AshWindowTreeHostPlatform::SetRootTransform(
« no previous file with comments | « no previous file | ui/ozone/platform/cast/platform_window_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698