Window decorations: removed 1px window border if window is in full-screen mode (issue #212)

This commit is contained in:
Karl Tauber
2020-11-20 10:12:28 +01:00
parent cd6b55c846
commit ccd4f99aea

View File

@@ -357,7 +357,7 @@ public class FlatRootPaneUI
@Override
public Insets getBorderInsets( Component c, Insets insets ) {
if( isWindowMaximized( c ) ) {
if( isWindowMaximized( c ) || FlatUIUtils.isFullScreen( c ) ) {
// hide border if window is maximized
insets.top = insets.left = insets.bottom = insets.right = 0;
return insets;
@@ -367,7 +367,7 @@ public class FlatRootPaneUI
@Override
public void paintBorder( Component c, Graphics g, int x, int y, int width, int height ) {
if( isWindowMaximized( c ) )
if( isWindowMaximized( c ) || FlatUIUtils.isFullScreen( c ) )
return;
Container parent = c.getParent();