-
Bug
-
Resolution: Fixed
-
P3
-
21, 22, 23
-
b13
-
linux
The test ResizingFrameTest fails with:
java.lang.RuntimeException: No Mouse Entered/Exited events!
at ResizingFrameTest.main(ResizingFrameTest.java:155)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
It looks like the mouse pointer is no longer in the right place from the XWayland server's point of view after calling
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
E.g we have
```
robot.mouseMove(500, 500);
...
System.out.println(MouseInfo.getPointerInfo().getLocation()); // java.awt.Point[x=500,y=500]
...
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
...
System.out.println(MouseInfo.getPointerInfo().getLocation()); // java.awt.Point[x=856,y=463] or other location depending on actual mouse cursor position on system
...
robot.mouseMove(500, 500); // has no effect
...
System.out.println(MouseInfo.getPointerInfo().getLocation()); // still doesn't print 500, 500
```
java.lang.RuntimeException: No Mouse Entered/Exited events!
at ResizingFrameTest.main(ResizingFrameTest.java:155)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
It looks like the mouse pointer is no longer in the right place from the XWayland server's point of view after calling
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
E.g we have
```
robot.mouseMove(500, 500);
...
System.out.println(MouseInfo.getPointerInfo().getLocation()); // java.awt.Point[x=500,y=500]
...
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
...
System.out.println(MouseInfo.getPointerInfo().getLocation()); // java.awt.Point[x=856,y=463] or other location depending on actual mouse cursor position on system
...
robot.mouseMove(500, 500); // has no effect
...
System.out.println(MouseInfo.getPointerInfo().getLocation()); // still doesn't print 500, 500
```
- links to
-
Commit(master) openjdk/jdk/b1b4cd42
-
Review(master) openjdk/jdk/20717