1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

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

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;