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

[macos] Screen::getDpi returns 0 when running on Windows using MS Remote Desktop app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx16
    • javafx
    • Adopt OpenJDK 16.0.1, JavaFX 16, Mac OS X (any, doesn't matter) and Windows 10 (latest all as of 2021-05-10).

    • x86_64
    • windows_10

      If the JavaFX app is run locally on the computer the correct value is returned.

      If the JavaFX app is run over Microsoft Remote Desktop (the app from the App Store) the Screen.getPrimary().getDpi() returns 0 at any time in the app (not just initially).

      It does not matter if "Retina mode" is used in Microsoft RDP.

      I guess that the RDP connection is creating its own virtual screen or something, because what I see on the Mac (over RDP then) is not what is shown locally on the screen of the computer, which just shows the lock screen.

            lkostyra Lukasz Kostyra
            mgrev Mikael Grev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: