summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-05-07 08:22:29 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-07 21:12:35 +0200
commitaf8cd477b4c34a1962ee7a0504dd9b833d5de257 (patch)
treeee2528a15289e41fb87db01c1787292fa5ce767f /Userland/Libraries/LibGUI
parent222a1b8b958251f05f7c8d4cdefc99f0511a5059 (diff)
downloadserenity-af8cd477b4c34a1962ee7a0504dd9b833d5de257.zip
LibGUI: Always paint vertical lines for Frames in unmaximized windows
Fixes incorrect thread highlighting for ResourceGraph panels. Prior to FrameStyles, these graphs were painted as faux-panels, this is, sunken containers with a thickness of 1, and weren't subject to the bug.
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/Frame.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Frame.cpp b/Userland/Libraries/LibGUI/Frame.cpp
index 2ecaff705d..b171dc1074 100644
--- a/Userland/Libraries/LibGUI/Frame.cpp
+++ b/Userland/Libraries/LibGUI/Frame.cpp
@@ -7,6 +7,7 @@
#include <LibGUI/Frame.h>
#include <LibGUI/Painter.h>
+#include <LibGUI/Window.h>
#include <LibGfx/Palette.h>
#include <LibGfx/StylePainter.h>
@@ -60,7 +61,8 @@ void Frame::paint_event(PaintEvent& event)
Painter painter(*this);
painter.add_clip_rect(event.rect());
- Gfx::StylePainter::paint_frame(painter, rect(), palette(), m_style, spans_entire_window_horizontally());
+ bool skip_vertical_lines = window()->is_maximized() && spans_entire_window_horizontally();
+ Gfx::StylePainter::paint_frame(painter, rect(), palette(), m_style, skip_vertical_lines);
}
Gfx::IntRect Frame::children_clip_rect() const