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

PopupControl stays on top after application goes to background (Windows/Linux)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11
    • javafx
    • None

      On Windows and Linux, but not on macOS, after showing a PopupControl window from the main stage, if the JavaFX application loses focus or goes to background, the popup window remains visible, on top of every other window from any other application.

      The attached test can be used to reproduce the issue.

      Steps:
      - Run the application, with any JDK and JavaFX version.
      - Open a terminal window, or any other application, and resize it so it covers the JavaFX application.
      - Select the JavaFX application
      - Click the Show button, a popup is displayed (as expected, see pics macOS1.png, Linux1.png, Windows1.png)
      - Select the first terminal window, the main stage goes to background (as expected), but on Linux/Windows the popupControl window remains visible (unexpected, see pics Linux2.png, Windows2.png), while on macOS the popupControl window goes to background as well (as expected, see macOS2.png).

      Tested on Windows 11, Ubuntu 22.04, macOS 15.0.1 with latest JDK and JavaFX versions (but any other will do).

        1. Linux1.png
          Linux1.png
          115 kB
        2. Linux2.png
          Linux2.png
          51 kB
        3. macOS1.png
          macOS1.png
          83 kB
        4. macOS2.png
          macOS2.png
          159 kB
        5. PopOverControlTest.java
          1 kB
        6. Windows1.png
          Windows1.png
          65 kB
        7. Windows2.png
          Windows2.png
          31 kB

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: