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

[macOS] Wrong position of popup window on external display after closing the lid

XMLWordPrintable

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

      On a macOS laptop with an external monitor plugged in, when running a JavaFX application on the built-in display and closing the lid, the application is moved to the external display.

      However, if there is also a popup window (like a contextMenu) showing up, when the main stage is moved to the external display, the popup window is moved as well but to a wrong position.

      To reproduce the issue, run the attached test on the built-in display of a power-connected macOS laptop, right-click on the label, so the context menu shows up (optionally, hover any of the menu items).

      (see "built-in display" pic)

      Then, close the lid of the laptop, and see that the application shows in the external display: the main stage is top-centered, but the context menu popup is at the very left of the display, keeping the selected menu item, and the mouse cursor over it, also at the very left of the display.

      (see "external display" pic)

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

              Created:
              Updated: