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

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 use ShouldWindowContentsBeTransparent 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 14e3a578111af56b4d71cd2de0d2c8e36d7e6e17..c25f77d5462bbfb47158da63e9ff673be551dfa9 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
@@ -781,7 +781,7 @@ bool DesktopWindowTreeHostX11::ShouldUseNativeFrame() const {
}
bool DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() const {
- return false;
+ return IsTranslucentWindowOpacitySupported();
}
void DesktopWindowTreeHostX11::FrameTypeChanged() {
@@ -937,7 +937,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