Don't show borders for a maximized Laptop client
Maximized windows should not have borders. REVIEW: 113047
This commit is contained in:
parent
0ec8646d78
commit
4a8e52ee4c
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue