Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

When using HiDPI, in Ghidra, some window content is not scaled up but some are #4242

Open pellaeon opened 5 months ago

pellaeon commented 5 months ago

Describe the bug

  1. I have 2 screens, one is scaled at 150%, the other at 100%
  2. When running Ghidra from xpra, and placing all windows on the 150% screen, one window of Ghidra has the correct frame size, but the content was small (seems to be 1/2 size). One other window has both correct window frame size and content size.

To Reproduce Steps to reproduce the behavior:

  1. xpra start ssh://...
  2. Download and unpack Ghidra, I tested 11.0.3 and 10.2.2.
  3. Run Ghidra by running ./ghidraRun in the unpacked directory.
  4. See the screenshot: Screenshot_20240530_154410

System Information (please complete the following information):

Additional context

totaam commented 5 months ago

Sounds quite similar to #4167 for macos. I believe that MS Windows also has the same problem, see also #3943 which may help there.

totaam commented 5 months ago

Could be related to #3994

pellaeon commented 5 months ago

I can confirm that adding --opengl=force:native solves the problem. Performance-wise I don't feel any difference but the applications that I use generally don't need a high frame rate.

Thank you for your prompt response, I'm happy to help debug this further.

totaam commented 5 months ago

This commit fixes things for v6.1 when running Wayland clients: 641847cf278aef4859497c7f0e55f6d3d67a162e Wayland clients and MacOS / Windows use the --opengl=gtk backend - I will need to test some more before backporting this to older branches.