From cd8bc9f0e7a14c70037b9b7245812674652f5971 Mon Sep 17 00:00:00 2001 From: Tom Anderson Date: Wed, 23 Aug 2017 19:47:21 +0000 Subject: [PATCH] X11: Fix transparency on certain windows Transparency on arrow windows stopped working after CL [1]. This CL is a one-line selective revert of that CL. Note that transparency on all other windows that I've tested (drag images, dragged URLs, etc) were not broken. [1] https://chromium.googlesource.com/chromium/src/+/5785866a9b2a0db4854552eb87af7229d4b11a43 BUG=758304 R=erg@chromium.org Change-Id: I37020d930bd081facce65b0a8be0eeb2e1756c69 Reviewed-on: https://chromium-review.googlesource.com/629538 Commit-Queue: Thomas Anderson Reviewed-by: Elliot Glaysher Cr-Commit-Position: refs/heads/master@{#496775} --- ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 316cf855f7cf..fa2878ae0d1d 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 @@ -974,7 +974,7 @@ bool DesktopWindowTreeHostX11::ShouldUseNativeFrame() const { } bool DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() const { - return false; + return IsTranslucentWindowOpacitySupported(); } void DesktopWindowTreeHostX11::FrameTypeChanged() {