Don't show borders for a maximized Laptop client

Maximized windows should not have borders.

REVIEW: 113047
icc-effect-5.14.5
Martin Gräßlin 2013-09-30 13:01:13 +02:00
parent 0ec8646d78
commit 4a8e52ee4c
1 changed files with 3 additions and 3 deletions

View File

@ -410,13 +410,13 @@ int LaptopClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const K
case LM_TitleEdgeRight:
case LM_BorderLeft:
case LM_BorderRight:
return 4;
return (maximizeMode() & MaximizeHorizontal) ? 0 : 4;
case LM_BorderBottom:
return mustDrawHandle() ? handleSize : 4;
return (maximizeMode() & MaximizeVertical) ? 0 : (isResizable() ? handleSize : 4);
case LM_TitleEdgeTop:
return 3;
return (maximizeMode() & MaximizeVertical) ? 0 : 3;
case LM_TitleEdgeBottom:
return 1;