| 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 aeadc78f2fe40a9863c39daa451852a86f78cf9f..06f0355d548b77c15df1ac312d60740789988115 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
|
| @@ -1156,9 +1156,13 @@ void DesktopWindowTreeHostX11::InitX11Window(
|
| if (swa.override_redirect)
|
| attribute_mask |= CWOverrideRedirect;
|
|
|
| - Visual* visual;
|
| - int depth;
|
| - ui::ChooseVisualForWindow(true, &visual, &depth);
|
| + bool enable_transparent_visuals =
|
| + params.type == Widget::InitParams::TYPE_DRAG ||
|
| + params.type == Widget::InitParams::TYPE_WINDOW;
|
| +
|
| + Visual* visual = CopyFromParent;
|
| + int depth = CopyFromParent;
|
| + ui::ChooseVisualForWindow(enable_transparent_visuals, &visual, &depth);
|
| if (depth == 32) {
|
| attribute_mask |= CWColormap;
|
| swa.colormap =
|
|
|