Skip to content

Commit

Permalink
Ensure focus is on main window after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hinerm committed Jul 1, 2024
1 parent 04aeccd commit aee6718
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/imagej/launcher/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void run() {
final Window[] windows = Window.getWindows();
for (final Window win : windows) {
if (win.isVisible() && win != splashWindow) {
win.requestFocusInWindow();
hide();
return;
}
Expand Down

0 comments on commit aee6718

Please sign in to comment.