JDK-8156981 : GTK3 doesn't seem to work right when GDK scaling is set
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-05-13
  • Updated: 2016-09-20
  • Resolved: 2016-08-11
Related Reports
Relates :  
Relates :  
Description
Running on my MBPro I have my GDK scale set to 2 in the control panel.  When I run a JavaFX app with GTK2 it runs fine (though unscaled), but when I run GTK3 it behaves as if GTK is trying to do scaling for us, but we didn't notice.  In particular:

- The window appears in the upper left quadrant of the screen - as if the screen bounds were reported to us scaled by half, which is what you'd expect if they are trying to handle the GDK_SCALE=2 for us.

- Ensemble lays itself out in the lower left 1/4 of the window, which is what you might expect if we are told the window is half the width and height that we'd asked for.

I am adding HiDPI support in and discovered these issues when I tested with GTK3.  They need to be fixed, but they are independent of what is going on with my HiDPI fixes (in particular, the issues appear identical before and after that fix) so I am filing this bug to investigate after I get the base HiDPI support in.
Comments
This indeed was resolved during the fix of JDK-8159892. Closing this bug as a duplicate.
11-08-2016

Raising the priority to match that of JDK-8159892 which is related (and may have the same root cause).
25-07-2016