basil commented on PR #8589:
URL: https://github.com/apache/netbeans/pull/8589#issuecomment-3193822714

   @eirikbakke The only relevant setting in KDE/KWin (I'm running the latest 
rolling version of Fedora, Fedora 42) is "Legacy applications (X11): Apply 
scaling themselves" or "Scaled by the system." With "Scaled by the system" 
NetBeans displays at the correct size but it is blurry, and all other X11 
applications on my system also look blurry (including my web browser, Brave). 
Sadly, the KDE/KWin version of this feature isn't implemented as well as GTK's, 
and can't be configured per-application. With "Apply scaling themselves" (the 
default), NetBeans only ever appears as 100% or 200% (no fractional values: 
`GDK_SCALE`, `J2D_UISCALE`, and `sun.java2d.uiScale` only have an effect when 
set to integers, and `GDK_DPI_SCALE` has no effect). I won't break my web 
browser for NetBeans (which I am very close to abandoning entirely), so it 
needs to work correctly with the default "Apply scaling themselves" option.
   
   > If you could find an equivalent feature in KDE/KWin, or a way to force 
KWin to scale a single application down by a given factor, it would be 
preferable to tweaking `flatlaf.uiScale`.
   
   There is no directly equivalent feature in KDE/KWin, and no way to force 
KWin to scale a single application down by a given factor. Adding an equivalent 
feature to KDE/KWin would be more of a large undertaking than I can offer. As 
such, I think the only practical solution today for KDE/KWin users running with 
"Apply scaling themselves" is to tweak `flatlaf.uiScale`.
   
   Fractional scaling users of KDE/KWin / "Apply scaling themselves" (the 
default on Fedora 42 KDE Edition), as well as those running GTK _without_ the 
`xwayland-native-scaling` feature you mention above (which only came out very 
recently), are currently getting a bad out of box experience (OOBE) with 
NetBeans running at obviously the wrong scale factor. Tweaking 
`flatlaf.uiScale` in those situations might not be ideal, but it is an 
improvement over the status quo (if it can be done without regressions) and 
does not block a more robust solution later, should Java improve its Wayland 
story or should KDE/KWin improve its X11 story.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to