Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
partial fix for #1, shadow is still a bit offset to the bottom when s…
Browse files Browse the repository at this point in the history
…haded
  • Loading branch information
n4n0GH committed Jan 4, 2020
1 parent 19a204a commit f47363c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion window-decoration/kdecoration/hellodecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ namespace Hello
boxRect.left() - outerRect.left() - Metrics::Shadow_Overlap - params.offset.x(),
boxRect.top() - outerRect.top() - Metrics::Shadow_Overlap - params.offset.y()
),
QSize(cWidth, borderTop()));
QSize(boxRect.width() + (outerRect.left() + Metrics::Shadow_Overlap + params.offset.x())*2, borderTop()));

// const QMargins shadePad = QMargins(
// boxRect.left() - outerRect.left() - Metrics::Shadow_Overlap - params.offset.x(),
Expand Down

0 comments on commit f47363c

Please sign in to comment.