JDK-6181677 : Java applications steal the focus on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0u1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2004-10-20
  • Updated: 2011-01-19
  • Resolved: 2004-10-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
5.0u1Resolved
Related Reports
Duplicate :  
Description
When I run any java window application, e.g., bugster or demo/jfc/Java2D/Java2Demo.jar, the application steals the focus whenever I change virtual desktop.

I'm using the metacity window manager which is standard in modern RedHat/Fedora distributions.  JDS could be affected as well.

How to reproduce the problem:

1. Have at least two virtual desktops open
2. start a java application, e.g. Java2Demo.jar
3. start a gnome-terminal and make sure it has focus
4. switch to the other virtual desktop (using a keybinding, I think the default is Ctrl-Alt-Left/Right).
5. switch back.

Now the Java application will have stolen the focus that belonged to the gnome-terminal.  Mostly, the gnome-terminal will be on top, so the user might not notice that the Java application has stolen the focus and start typing into the wrong window.

The problem isn't present in this JDK:
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

The problem is present in this JDK:
java version "1.5.0_01-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-ea-b03)
Java HotSpot(TM) Client VM (build 1.5.0_01-ea-b03, mixed mode, sharing)

I'm running this Linux distribution:
Fedora Core release 2 (Tettnang)
###@###.### 10/20/04 03:24 GMT

Comments
EVALUATION A duplicate of 5094112. ###@###.### 10/20/04 15:06 GMT
20-10-2004