Set bottom border to zero for shaded windows

wilder-pre-rebase
Hugo Pereira Da Costa 8 years ago
parent 41c24a337c
commit d32deed896
  1. 3
      kdecoration/breezedecoration.cpp

@ -312,12 +312,13 @@ namespace Breeze
//________________________________________________________________ //________________________________________________________________
void Decoration::recalculateBorders() void Decoration::recalculateBorders()
{ {
auto c = client().data();
auto s = settings(); auto s = settings();
// left, right and bottom borders // left, right and bottom borders
const int left = isLeftEdge() ? 0 : borderSize(); const int left = isLeftEdge() ? 0 : borderSize();
const int right = isRightEdge() ? 0 : borderSize(); const int right = isRightEdge() ? 0 : borderSize();
const int bottom = isBottomEdge() ? 0 : borderSize(true); const int bottom = (c->isShaded() || isBottomEdge()) ? 0 : borderSize(true);
int top = 0; int top = 0;
if( hideTitleBar() ) top = bottom; if( hideTitleBar() ) top = bottom;

Loading…
Cancel
Save