forked from External/mage
Partial fix for macOS fullscreen support. For #9354.
This commit is contained in:
parent
8b71e0a444
commit
1d0bcb49ad
3 changed files with 72 additions and 60 deletions
|
|
@ -349,10 +349,10 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
setWindowTitle();
|
||||
});
|
||||
|
||||
if (SystemUtil.isMacOSX()) {
|
||||
SystemUtil.enableMacOSFullScreenMode(this);
|
||||
if (MacFullscreenUtil.isMacOSX()) {
|
||||
MacFullscreenUtil.enableMacOSFullScreenMode(this);
|
||||
if (fullscreenMode) {
|
||||
SystemUtil.toggleMacOSFullScreenMode(this);
|
||||
MacFullscreenUtil.toggleMacOSFullScreenMode(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue