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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 1998653002: Make DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() relies on argb visual flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and simplify the unit test Created 4 years, 6 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: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
index 802443b78e51b88daaac6592dcce9e5ada9e8ae2..8abd36eaee3c63a989fa62703a7b35ff00abd25b 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
@@ -782,7 +782,7 @@ bool DesktopWindowTreeHostX11::ShouldUseNativeFrame() const {
}
bool DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() const {
- return false;
+ return IsTranslucentWindowOpacitySupported();
}
void DesktopWindowTreeHostX11::FrameTypeChanged() {
@@ -938,7 +938,7 @@ bool DesktopWindowTreeHostX11::IsAnimatingClosed() const {
}
bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const {
- return false;
+ return use_argb_visual_;
}
void DesktopWindowTreeHostX11::SizeConstraintsChanged() {

Powered by Google App Engine
This is Rietveld 408576698