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

   I had a chat with the developer who authored 
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3567 . Excerpt:
   
   My question:
   
   > Java apps such as NetBeans can support a 2x HiDPI scaling quite easily on 
Linux, due to underlying support in the OpenJDK platform (which currently runs 
through Xwayland, as I understand it). Fractional scaling factors, however, are 
not supported directly by OpenJDK. However, fractional scaling could be 
supported quite easily if there was a way to tell Mutter to scale a given 
application's windows down by a factor of less than one. Then OpenJDK could 
render its windows at 2x scaling and mutter could scale the resulting bitmap 
down by e.g. a factor of 0.75 to get a final, sharp scaling factor of 2*0.75 = 
150%. This is how fractional scaling works on MacOS, and it works very well 
there. This technique also works with multiple monitors, which can have 
different compositor-applied scale-down factors.
   > 
   > Is there a way to achieve something like this with Mutter and Xwayland? 
E.g. allow an individual application to declare that it will draw itself at 2x 
scaling, and then have mutter scale by e.g. 0.75 instead of 1.5 whenever the 
window is on a monitor that has a desired scale factor of 150%?
   
   Jonas Dreßler replied to me:
   
   > Happy to let you know that in fact the MacOS way is exactly how fractional 
scaling works on Mutter as well :)
   
   However, I was not yet able to make this work.


-- 
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: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

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

Reply via email to