Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8315657

Application window not activated in macOS 14 Sonoma

    XMLWordPrintable

Details

    • b11
    • generic
    • os_x

    Backports

      Description

        ADDITIONAL SYSTEM INFORMATION :
        os_x: 14.0 Beta
        java: openjdk 20.0.2 2023-07-18
        javafx: javafx-sdk-20.0.2

        A DESCRIPTION OF THE PROBLEM :
        Using a minimal JavaFX application (used from bug JDK-8283590) and starting it from the command line or eclipse shows the JavaFX window in the background. It needs two clicks into the window to bring the application to front.
        This behavior is also described JDK-8283590, but it's not related to the "Secure Keyboard Entry" (which is turned off in the terminal and not available from eclipse).
        Because this is not related to the "Secure Keyboard Entry" flag, this may be an new problem with ox_x 14.


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Use minimal JavaFX from JDK-8283590 and run it.


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Application window is in front.
        ACTUAL -
        Application window is not in front and needs two clicks to get activated

        ---------- BEGIN SOURCE ----------
        import javafx.application.Application;
        import javafx.scene.Scene;
        import javafx.scene.layout.Pane;
        import javafx.stage.Stage;
        public class App extends Application {
            public static void main(String[] args) {
                launch(args);
            }

            @Override
            public void start(Stage stage) throws Exception {
                Scene scene = new Scene(new Pane());
                stage.setTitle("App");
                stage.setScene(scene);
                stage.setWidth(100);
                stage.setHeight(100);
                stage.setX(0);
                stage.setY(0);
                stage.show();
            }
        }


        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        None known

        FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

                kcr Kevin Rushforth
                webbuggrp Webbug Group
                Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: