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

Unified Diff: services/native_viewport/platform_viewport_x11.cc

Issue 1311583003: Fix platform_viewport_x11 so that window is initially shown (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 | « mojo/services/native_viewport/public/interfaces/native_viewport.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/platform_viewport_x11.cc
diff --git a/services/native_viewport/platform_viewport_x11.cc b/services/native_viewport/platform_viewport_x11.cc
index d45215085cebfb319776115d44dadcebeb888ead..c77f413e4fc42819e7a703788c5f7f97a9c4f06f 100644
--- a/services/native_viewport/platform_viewport_x11.cc
+++ b/services/native_viewport/platform_viewport_x11.cc
@@ -54,6 +54,9 @@ class PlatformViewportX11 : public PlatformViewport,
platform_window_.reset(new ui::X11Window(this));
platform_window_->SetBounds(bounds);
+
+ // X11 window isn't created until explicitly shown
+ Show();
}
void Show() override { platform_window_->Show(); }
« no previous file with comments | « mojo/services/native_viewport/public/interfaces/native_viewport.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698