Skip to content

Commit b32be58

Browse files
conditional for setting decorated only when the frame is displayable
1 parent 3e504c4 commit b32be58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/ui/Editor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void windowDeactivated(WindowEvent e) {
212212
box.add(spacer);
213213
}
214214
if (Platform.isLinux()) {
215-
setUndecorated(true);
215+
if (isDisplayable()) setUndecorated(true);
216216
getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
217217
}
218218

0 commit comments

Comments
 (0)