summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-02-09 10:57:55 -0700
committerAndreas Kling <kling@serenityos.org>2021-02-09 19:18:00 +0100
commitdb0149056fb45b29127829193b35bd967610122d (patch)
tree0eb0b6ff74042fa880a009691c67b04a03cc41f0
parent3d374954eb83daad7a749277e63b952feabd85c2 (diff)
downloadserenity-db0149056fb45b29127829193b35bd967610122d.zip
WindowServer: Don't render shadow for frameless windows
Fixes CatDog rendering odd square shadow.
-rw-r--r--Userland/Services/WindowServer/WindowFrame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/WindowFrame.cpp b/Userland/Services/WindowServer/WindowFrame.cpp
index 0f73c415ba..49fd3b2cd8 100644
--- a/Userland/Services/WindowServer/WindowFrame.cpp
+++ b/Userland/Services/WindowServer/WindowFrame.cpp
@@ -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;