summaryrefslogtreecommitdiffstats
path: root/ui/platform_window/x11
diff options
context:
space:
mode:
authorhansmuller <hansmuller@chromium.org>2014-10-09 10:29:15 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-09 17:29:26 +0000
commitb37606e1c2a6703e58a61a978e8e32be72acae0c (patch)
tree7bbfd0814e886f220dbaebe66266b0629e561288 /ui/platform_window/x11
parentd872dd066eb644f2d85e25429f55451cd2dd20d4 (diff)
downloadchromium_src-b37606e1c2a6703e58a61a978e8e32be72acae0c.zip
chromium_src-b37606e1c2a6703e58a61a978e8e32be72acae0c.tar.gz
chromium_src-b37606e1c2a6703e58a61a978e8e32be72acae0c.tar.bz2
ui::PlatformWindowDelegate::OnClosed() isn't called when a ui::X11Window is closed
This problem manifests itself in simple Mojo apps that use NativeViewportService on X11. When the NativeViewport window is closed, the NativeViewportClient OnDestroyed() method does not run. BUG=421536 Review URL: https://codereview.chromium.org/644443002 Cr-Commit-Position: refs/heads/master@{#298926}
Diffstat (limited to 'ui/platform_window/x11')
-rw-r--r--ui/platform_window/x11/x11_window.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/platform_window/x11/x11_window.cc b/ui/platform_window/x11/x11_window.cc
index 07baea6..e3a421c 100644
--- a/ui/platform_window/x11/x11_window.cc
+++ b/ui/platform_window/x11/x11_window.cc
@@ -56,6 +56,7 @@ X11Window::~X11Window() {
}
void X11Window::Destroy() {
+ delegate_->OnClosed();
if (xwindow_ == None)
return;