JDK-8088778 : Win: Popups and Context Menus stay in foreground when debugging
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 7u6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2012-10-08
  • Updated: 2018-09-05
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
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
I open a context menu in my application and select an action from it.
The action triggers a breakpoint in my debugger.

Observed Behaviour:
When I switch to my debugger window, the application window goes to the background, but the context menu remains visible.

Expected behaviour:
Both the application and the context menu go to the background.

The same applies to PopupWindows with controls that trigger a breakpoint.

This issue sounds similar to RT-25483, but the problem is less severe.

The attached demo illustrates the issue when you debug it with a breakpoint set in the EventHandler.
Comments
This issue is caused by the fact that popup windows are WS_EX_TOPMOST and the topmost state is never reset. This issue is very similar to RT-22152. I'm assigning it to Artem since it is his code that is causing both issues.
24-10-2012