[Linux] getMouseX, getMouseY in gtk GlassRobot.cpp ignore the HiDPI scale

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jfx11
    • Affects Version/s: jfx11
    • Component/s: javafx
    • None

      The getMouseX, getMouseY functions in GlassRobot.cpp in gtk robot dont consider the HiDPI scale properties .
      The coordinates are scaled-up in mouseMove functions for uiScale but the coordinates are not scaled-down in getScaleX, getScaleY functions.

      To reproduce the bug, run the test case tests/system/src/test/java/test/robot/javafx/scene/MouseLocationOnScreenTest.java at HiDPI scale >= 1.5 on linux, the test case fails. A debug patch is also attached which fixes the issue. If required, a small test case can be provided to reproduce the issue.

            Assignee:
            Pankaj Bansal (Inactive)
            Reporter:
            Pankaj Bansal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: