mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 01:40:36 +00:00
WindowServer: Don't render shadow for frameless windows
Fixes CatDog rendering odd square shadow.
This commit is contained in:
parent
3d374954eb
commit
db0149056f
Notes:
sideshowbarker
2024-07-18 22:28:34 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/db0149056fb Pull-request: https://github.com/SerenityOS/serenity/pull/5274
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue