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

Unified Diff: ui/platform_window/x11/x11_window.cc

Issue 1228173003: mojo: Fix running view-manager related apptests on X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« ui/platform_window/x11/x11_window.h ('K') | « ui/platform_window/x11/x11_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/x11/x11_window.cc
diff --git a/ui/platform_window/x11/x11_window.cc b/ui/platform_window/x11/x11_window.cc
index 06463154c8cb488f1e89b27ddf67949c2fac71f7..747581700efe9fa1aaf4792ec8906e8611ec27c6 100644
--- a/ui/platform_window/x11/x11_window.cc
+++ b/ui/platform_window/x11/x11_window.cc
@@ -38,6 +38,8 @@ XID FindXEventTarget(XEvent* xevent) {
return target;
}
+bool g_override_redirect = false;
+
} // namespace
X11Window::X11Window(PlatformWindowDelegate* delegate)
@@ -123,7 +125,7 @@ void X11Window::Show() {
XSetWindowAttributes swa;
memset(&swa, 0, sizeof(swa));
swa.background_pixmap = None;
- swa.override_redirect = False;
+ swa.override_redirect = g_override_redirect;
xwindow_ = XCreateWindow(xdisplay_,
xroot_window_,
requested_bounds_.x(),
@@ -365,4 +367,11 @@ uint32_t X11Window::DispatchEvent(const PlatformEvent& event) {
return POST_DISPATCH_STOP_PROPAGATION;
}
+namespace test {
+
+void SetUseOverrideRedirectWindowByDefault(bool override_redirect) {
+ g_override_redirect = override_redirect;
+}
+
+} // namespace test
} // namespace ui
« ui/platform_window/x11/x11_window.h ('K') | « ui/platform_window/x11/x11_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698