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

Win32:Robot should not save an offset when created with a non-default GraphicsDe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.1
    • client-libs
    • x86
    • windows_2000

      Currently, WRobotPeer saves the offset of the screen it is created for, and then applies the offset to mouseMove() and getRGBPixel() calls. There is problem with this - the coordinates returned from Component.getLocationOnScreen() are global coordinates, not relative the their screen. So, it's much more difficult than it needs to be move the mouse to the location of a Component that is not on the primary display. The situation also makes it difficult or impossible for one codebase to work the same on the three major multi-screen configurations: X11 using Xinerama, X11 without Xinerama, and Windows.

      This has been the case since 1.3, when Robot was added.

            serb Sergey Bylokhov
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: