Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1741676

Summary: Mouse wheel change focus on awt/swing windows on openjdk-1.8.0
Product: Red Hat Enterprise Linux 7 Reporter: Paulo Andrade <pandrade>
Component: java-1.8.0-openjdkAssignee: Mario Torre <neugens>
Status: CLOSED ERRATA QA Contact: OpenJDK QA <java-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.6CC: ahughes, brclark, dbhole, dwoodruf, jvanek, neugens, zzambers
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: java-1.8.0-openjdk-1.8.0.232.b09-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 19:51:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1725255    
Attachments:
Description Flags
Proposed fix for jdk8u
none
Proposed fix for jdk8u (correct) none

Description Paulo Andrade 2019-08-15 19:31:31 UTC
Simple reproducer:

$ cat Foo.java
import java.awt.Dimension;
import javax.swing.JFrame;

public class Foo {
    public static void main(String[] args) {
    JFrame w1 = new JFrame("Window 1"), w2 = new JFrame("Window 2");
    w1.setPreferredSize(new Dimension(600, 600));
    w1.pack();
    w1.setVisible(true);
    w2.setPreferredSize(new Dimension(600, 600));
    w2.pack();
    w2.setVisible(true);
    }
}

$ javac Foo.java
$ java Foo

  Slight move one of the windows and use mouse wheel. The window will
gain focus,
but not be raised.

  It should either get focus and be raised, or not get focus.

  Probably it should just not request focus, to better match what appears
to the 'standard' behaviour of qt/gtk applications.

[ This issue was raided in the internal openjdk-support mailing list,
opening the bug report to associate with the customer portal case report. ]

Comment 4 Mario Torre 2019-10-08 09:04:14 UTC
Filed upstream issue:

https://bugs.openjdk.java.net/browse/JDK-8231991

Comment 5 Mario Torre 2019-10-08 09:43:30 UTC
I send the request for review for this fix:

http://cr.openjdk.java.net/~neugens/JDK-8231991/webrev.00/

Comment 9 Mario Torre 2019-10-25 12:07:08 UTC
Created attachment 1629147 [details]
Proposed fix for jdk8u

Comment 18 Mario Torre 2019-11-15 12:31:44 UTC
Created attachment 1636476 [details]
Proposed fix for jdk8u (correct)

Comment 32 Chris Williams 2020-01-15 21:25:23 UTC
*** Bug 1774765 has been marked as a duplicate of this bug. ***

Comment 45 errata-xmlrpc 2020-03-31 19:51:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1071