From db6a07d4270ce4ab11db509dd336f2b51a3e269d Mon Sep 17 00:00:00 2001 From: Rob Arnold Date: Wed, 1 Oct 2008 02:05:27 -0400 Subject: [PATCH] Fix Aero-Glass on panels (round 2) for bug 451300 r=vlad --- widget/src/windows/nsWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index 9bfee0e4ddff..d1fc9c8c568e 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -5534,7 +5534,9 @@ DWORD nsWindow::WindowStyle() case eWindowType_popup: if (mTransparencyMode == eTransparencyGlass) { - style = WS_OVERLAPPED; + /* Glass seems to need WS_CAPTION or WS_THICKFRAME to work. + WS_THICKFRAME has issues with autohiding popups but looks better */ + style = WS_POPUP | WS_THICKFRAME; } else { style = WS_OVERLAPPED | WS_POPUP; }