Browse Source

WindowServer: Don't render shadow for frameless windows

Fixes CatDog rendering odd square shadow.
Tom 4 years ago
parent
commit
db0149056f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Services/WindowServer/WindowFrame.cpp

+ 2 - 0
Userland/Services/WindowServer/WindowFrame.cpp

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