-
Bug
-
Resolution: Unresolved
-
P4
-
jfx22
-
None
-
os_x
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)
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)