Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: main window shows inside fullscreen if started from fullscreen app #221

Open
bumfo opened this issue Mar 25, 2022 · 2 comments
Open

Comments

@bumfo
Copy link
Contributor

bumfo commented Mar 25, 2022

If you start the app from an full screen app, e.g. Intellij IDEA, then the main window is shown inside the fullscreen space, instead of shown in desktop space as normal.

The behavior is correct in 0.3.x, when using App.init() and App.start() separately.

@bumfo
Copy link
Contributor Author

bumfo commented Mar 25, 2022

However, if a delay is added before setVisible(true) of the main window, everything works fine.

Edit: Below is a minimal workaround. Not sure why.

App.start(() -> {
    Window window = App.makeWindow();
    new Thread(() -> {
        App.runOnUIThread(() -> {
            window.setVisible(true);
        });
    }).start();
});

@tonsky
Copy link
Collaborator

tonsky commented Mar 25, 2022

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants