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

[hidpi] Linux: display-wise scaling factor should probably be taken into account



    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • client-libs
    • b130
    • linux


      For now to enable HiDPI support on Linux for java apps, the GDK_SCALE factor should be set.

      But this approach has some seeming drawbacks:
      1. it works for both HiDPI and non-HiDPI displays and must be set by the user explicitly
      2. it is seemingly not display-wise in case of multi-display machine configuration
      3. it ignores scaling factor settings (CL for GNOME, or, e.g., for Ubuntu 15.04, scaling rules in "Display" settings which are individual for each display in the system) whereas native apps do respect them. (it also ignores display resolution settings)

      So it is desirable that use of, e.g., Ubuntu display scale changes will affect the size of java application components.

      It is also desirable to select the resolution variant for a multiresolution image if the scale changed (for now the only way to select it is seemingly to set GDK_SCALE before the application run, and the user always see 1x or 2x variant regardless of the real display HiDPI capabilities) - please see comments to JDK-8147557.

      Ideally, the multi-resolution image should automatically adjust the resolution variant for HiDPI/non-HiDPI display (as it works for Windows and OS X now), not delegate this to the user (if it is possible, of course).


        Issue Links



              ssadetsky Semyon Sadetsky (Inactive)
              avstepan Alexander Stepanov
              0 Vote for this issue
              4 Start watching this issue