Theme Editor: fixed occasional empty window on startup on macOS

This commit is contained in:
Karl Tauber
2024-05-31 11:55:39 +02:00
parent f05df0db0a
commit 0eb77c7f72
2 changed files with 7 additions and 0 deletions

View File

@@ -929,6 +929,12 @@ class FlatThemeFileEditor
y = Math.max( Math.min( y, r.height - h ), r.y );
}
// On macOS, the window may be empty if it spans the whole screen height
// and client property apple.awt.fullWindowContent is set to true.
// Invoking addNotify() before setting window bounds fixes this issue.
if( SystemInfo.isMacOS && !isDisplayable() )
addNotify();
setBounds( x, y, w, h );
return;
} catch( NumberFormatException ex ) {