summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/Button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/WindowServer/Button.cpp')
-rw-r--r--Userland/Services/WindowServer/Button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Button.cpp b/Userland/Services/WindowServer/Button.cpp
index d6d9769ec5..bc73ff5383 100644
--- a/Userland/Services/WindowServer/Button.cpp
+++ b/Userland/Services/WindowServer/Button.cpp
@@ -39,7 +39,7 @@ void Button::paint(Screen& screen, Gfx::Painter& painter)
painter.blit(icon_location, bitmap, bitmap.rect());
};
- if (m_icon.hover_bitmap && m_hovered)
+ if (m_hovered && m_icon.hover_bitmap && !m_icon.hover_bitmap->is_empty())
paint_icon(m_icon.hover_bitmap);
else if (m_icon.bitmap)
paint_icon(m_icon.bitmap);