From cff5f74ecfa821ee74a68bf8192ffb555c1d2002 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Mon, 27 Feb 2023 13:59:19 -0500 Subject: [PATCH] Revert "Fix maximized window gap" This reverts commit fbe608b1cd11e1b609f0f251c4d6e494cc52a5d0. --- kdecoration/breezedecoration.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kdecoration/breezedecoration.cpp b/kdecoration/breezedecoration.cpp index 71f5a694..bb8e76ef 100644 --- a/kdecoration/breezedecoration.cpp +++ b/kdecoration/breezedecoration.cpp @@ -610,11 +610,8 @@ void Decoration::paint(QPainter *painter, const QRect &repaintRegion) void Decoration::paintTitleBar(QPainter *painter, const QRect &repaintRegion) { const auto c = client().toStrongRef(); - // Check if the window is maximized and if so, remove the extra gap that makes room for outlines, - // since they're not even drawn when window is maximized - const int outlineGap = isMaximized() ? 0 : 1; const QRect frontRect(QPoint(0, 1), QSize(size().width(), borderTop())); - const QRect backRect(QPoint(0, outlineGap), QSize(size().width(), borderTop() - outlineGap)); + const QRect backRect(QPoint(0, 1), QSize(size().width(), borderTop() - 1)); QBrush frontBrush; QBrush backBrush(this->titleBarColor());