Skip to content

Commit

Permalink
Make titlebar consistent for square buttonHighlightStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmcauley committed Mar 30, 2021
1 parent 02c0ba3 commit b9e85d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kdecoration/breezedecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ namespace Breeze
const bool maximized = isMaximized();
int width, height, x, y;

//prevents resize handles appearing in button for large square buttons
//prevents resize handles appearing in button at top window edge for large square buttons
if( internalSettings()->buttonHighlightStyle() == InternalSettings::EnumButtonHighlightStyle::HighlightSquare )
{
width = c->width();
width = maximized ? c->width() : c->width() - 2*s->largeSpacing()*Metrics::TitleBar_SideMargin;
height = borderTop();
x = 0;
x = maximized ? 0 : s->largeSpacing()*Metrics::TitleBar_SideMargin;
y = 0;

} else
Expand Down

0 comments on commit b9e85d6

Please sign in to comment.