Skip to content

App window does not get focus on start #18

@istepaniuk

Description

@istepaniuk

A bit of a minor issue, but at least on Linux + Wayland, the application window launches without focus. E.g., if launched from a terminal, the focus stays on the terminal. A click on the window or explicit window switch is needed to be able to play.

I think this is easily solved by adding on Window.java:

Window.frame.toFront();
Window.frame.requestFocus();
Window.canvas.requestFocusInWindow();

Right after

Window.frame.setVisible(true);
Window.canvas.setVisible(true);

focus-on-startup.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions