WindowServer: Don't render shadow for frameless windows

Fixes CatDog rendering odd square shadow.
This commit is contained in:
Tom 2021-02-09 10:57:55 -07:00 committed by Andreas Kling
parent 3d374954eb
commit db0149056f
Notes: sideshowbarker 2024-07-18 22:28:34 +09:00

View file

@ -168,6 +168,8 @@ void WindowFrame::set_button_icons()
Gfx::Bitmap* WindowFrame::window_shadow() const
{
if (m_window.is_frameless())
return nullptr;
if (m_window.type() == WindowType::Desktop)
return nullptr;
return s_window_shadow;