diff --git a/src/decoration/qgnomeplatformdecoration.cpp b/src/decoration/qgnomeplatformdecoration.cpp index 87b6463..f6c53df 100644 --- a/src/decoration/qgnomeplatformdecoration.cpp +++ b/src/decoration/qgnomeplatformdecoration.cpp @@ -449,7 +449,10 @@ void QGnomePlatformDecoration::paint(QPaintDevice *device) // ******************************** p.save(); p.setPen(borderColor); - p.drawLine(margins().left(), margins().top() - WINDOW_BORDER_WIDTH, surfaceRect.width() - margins().right(), margins().top() - WINDOW_BORDER_WIDTH); + p.drawLine(QLineF(margins().left(), + margins().top() - WINDOW_BORDER_WIDTH / 2.0, + surfaceRect.width() - margins().right(), + margins().top() - WINDOW_BORDER_WIDTH / 2.0)); p.restore(); // Window title