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 - Mouse wheel change focus on awt/swing windows on openjdk-1.8.0
Summary: Mouse wheel change focus on awt/swing windows on openjdk-1.8.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 7.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Mario Torre
QA Contact: OpenJDK QA
URL:
Whiteboard:
: 1774765 (view as bug list)
Depends On:
Blocks: 1725255
TreeView+ depends on / blocked
 
Reported: 2019-08-15 19:31 UTC by Paulo Andrade
Modified: 2023-09-07 20:24 UTC (History)
7 users (show)

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:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:51:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix for jdk8u (8.90 KB, patch)
2019-10-25 12:07 UTC, Mario Torre
no flags Details | Diff
Proposed fix for jdk8u (correct) (9.14 KB, text/plain)
2019-11-15 12:31 UTC, Mario Torre
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1071 0 None None None 2020-03-31 19:52:02 UTC
openjdk bug system JDK-8231991 0 None None None 2019-10-08 09:04:53 UTC

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


Note You need to log in before you can comment on or make changes to this bug.