java jwindow focus handling is buggy under compiz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Invalid
|
Undecided
|
Unassigned | ||
Compiz Core |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have a java (swing) application running under java-7-openjdk with the following problem:
If the app opens a popup window of type "JWindow", the window (and the component in it) receives input focus. However, clicking the already focused component again results in a "focus lost" and "window focus lost" event, before the focus is re-transferred to the window and the component in it.
This bug does not occur if a JDialog pops up.
This bug does not occur with Unity-2D, that's why I think that the bug is caused by compiz.
This bug did not occur under Natty.
I have attached a small demo program to show the bug. Run the prog and watch the output on system.out when clicking multiple times on the already open popups: The JDialog works ok, The JWindow does not.
Run the same program under Unity-2D. Both popups work ok.
I currently have compiz version 1:0.9.6+
no longer affects: | ubuntu |
I have attached the demo program as runnable jar also.
Run with java -jar DebugFocusMain.jar