Skip to content

Commit

Permalink
remove corners
Browse files Browse the repository at this point in the history
  • Loading branch information
dukzcry committed Mar 15, 2017
1 parent cb507f0 commit 2a9cf18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/skeleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,17 @@ void Decoration::paint(QPainter *painter, const QRect &repaintArea)

m_leftButtons->paint(painter, repaintArea);
m_rightButtons->paint(painter, repaintArea);

// remove corners
if (!client().data()->isMaximized())
{
painter->setPen(Qt::black);
painter->setCompositionMode(QPainter::CompositionMode_DestinationOut);
painter->drawPoint(0,0);
painter->drawPoint(w-1,0);
painter->drawPoint(w-1,h-1);
painter->drawPoint(0,h-1);
}
}

void Decoration::updateHoverAnimation(qreal /*hoverProgress*/, const QRect &updateRect)
Expand Down

0 comments on commit 2a9cf18

Please sign in to comment.