diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt index c840537e08..5618f00a51 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt @@ -104,7 +104,7 @@ import javax.swing.JFrame } } - val undecoratedWindowBorder = if (undecorated && decoratedWindowState.isMaximized) { + val undecoratedWindowBorder = if (undecorated && !decoratedWindowState.isMaximized) { Modifier.border( Stroke.Alignment.Inside, style.metrics.borderWidth,