Index: ui/views/widget/widget_hwnd_utils.cc |
=================================================================== |
--- ui/views/widget/widget_hwnd_utils.cc (revision 221492) |
+++ ui/views/widget/widget_hwnd_utils.cc (working copy) |
@@ -63,8 +63,13 @@ |
// DwmExtendFrameIntoClientArea passing -1 as the margins. |
if (params.opacity == Widget::InitParams::TRANSLUCENT_WINDOW) { |
#if defined(USE_AURA) |
- if (ui::win::IsAeroGlassEnabled()) |
+ if (ui::win::IsAeroGlassEnabled()) { |
*ex_style |= WS_EX_COMPOSITED; |
+ } else { |
+ // In classic mode, the WS_EX_TRANSPARENT style causes the window to not |
+ // paint correctly. |
+ *ex_style &= ~WS_EX_TRANSPARENT; |
sky
2013/09/06 21:03:47
Won't this cause bad things to happen where we are
ananta
2013/09/06 21:23:26
The HWNDMessageHandler::SetInitialFocus function i
ananta
2013/09/06 22:08:50
As per our discussion we pass in accept_events = t
|
+ } |
#else |
*ex_style |= WS_EX_LAYERED; |
#endif |