JDK-8227366 : Wrong stage gets focused after modal stage creation
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: openjfx13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-07-07
  • Updated: 2021-07-21
  • Resolved: 2019-08-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx14Fixed
Related Reports
Relates :  
Relates :  
Description
When a MODAL stage is created as the owner of previous stage after a Dialog/Alert, the wrong stage is focused.

Steps to reproduce:

1) Run the sample
2) Press the "Click Me!" button
3) Answer YES on the Alert

The primary stage is brought to front instead of the stage with the button (it's the owner of the last stage).

Comments
Changeset: 676fa99fcc8b Author: tsayao Date: 2019-08-20 08:34 -0700 URL: https://hg.openjdk.java.net/openjfx/jfx-dev/rt/rev/676fa99fcc8b 8227366: Wrong stage gets focused after modal stage creation Reviewed-by: kcr, arapte
20-08-2019

Does not happen on Windows 10.
07-07-2019