Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8332158

[XWayland] test/jdk/java/awt/Mouse/EnterExitEvents/ResizingFrameTest.java

    XMLWordPrintable

Details

    • b13
    • linux

    Description

      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
      ```

      Attachments

        Issue Links

          Activity

            People

              azvegint Alexander Zvegintsev
              azvegint Alexander Zvegintsev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: