-
Bug
-
Resolution: Fixed
-
P4
-
11, 13, 14
-
b25
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8236117 | 13u-cpu | Mario Torre | P4 | Resolved | Fixed | master |
JDK-8240251 | 11.0.8-oracle | Mario Torre | P4 | Resolved | Fixed | b01 |
JDK-8234589 | 11.0.6 | Mario Torre | P4 | Resolved | Fixed | b05 |
JDK-8237063 | openjdk8u252 | Mario Torre | P4 | Resolved | Fixed | b01 |
JDK-8234910 | 13u-open | Mario Torre | P4 | Resolved | Fixed | master |
There is an issue with the way mouse wheel events carry focus to background components on Linux with X11, for example if we have two frames one in front and focused and the other in the background and we move the mouse cursor over the background frame and start scrolling with the mouse wheel up or down the background frame now receive focus, it is however not raised, leaving the foreground frame in an inconsistent state.
A simple reproducer demonstrate the problem:
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);
}
}
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.
A simple reproducer demonstrate the problem:
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);
}
}
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.
- backported by
-
JDK-8234589 Mouse wheel change focus on awt/swing windows
- Resolved
-
JDK-8234910 Mouse wheel change focus on awt/swing windows
- Resolved
-
JDK-8236117 Mouse wheel change focus on awt/swing windows
- Resolved
-
JDK-8237063 Mouse wheel change focus on awt/swing windows
- Resolved
-
JDK-8240251 Mouse wheel change focus on awt/swing windows
- Resolved
- relates to
-
JDK-8234107 Several AWT modal dialog tests failing on Linux after JDK-8231991
- Resolved
(1 relates to)