NETworkManager icon indicating copy to clipboard operation
NETworkManager copied to clipboard

RDP window size does not adapt

Open guowenju opened this issue 2 years ago • 8 comments

Describe your issue: After changing the primary monitor resolution from 1920x1080 to 2880x1800, the RDP window size in the secondary monitor does not adapt. The secondary monitor is 1600x900.

Steps to reproduce the issue:

1. 2. 3.

NETworkManager version: 2024.11.11.0 2024.8.1.0

  • [√ ] Portable

Windows version (like 10.0.x.x): Win11 23h2 版本 10.0.22631 版本 22631

.NET version (like 6.0.x): 8.0

Screenshots 微信截图_20241113105611

Eventlog (if application crashes)

guowenju avatar Nov 13 '24 03:11 guowenju

Hi @sfwwslm, you can set the display options global, per group and per host.

https://borntoberoot.net/NETworkManager/docs/application/remote-desktop#display

If you change this setting, you must re-establish the connection (open a new tab) for it to be applied.

Maybe the server itself has set a max display resolution. (e.g. https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.TerminalServer::TS_MAXDISPLAYRES) You could check this with the normal mstsc.exe.

Edit:

I just tried this, and it's working for me:

image

BornToBeRoot avatar Nov 14 '24 09:11 BornToBeRoot

@BornToBeRoot Thanks, I used mstsc.exe and it showed normal. I tried custom resolution but it didn't work.

guowenju avatar Nov 14 '24 09:11 guowenju

This is my laptop's display configuration

20241114175053

guowenju avatar Nov 14 '24 09:11 guowenju

Thanks for the infos. I try to reproduce that

BornToBeRoot avatar Nov 15 '24 15:11 BornToBeRoot

I was able to reproduce the problem. It's due to the display settings/scaling factor (150%, 200%, ...)

I'm not sure how to fix it, but I'll try to look into it when I have more time.

Edit: This also affects PuTTY, PowerShell, TigerVNC, AWS Session Manager

BornToBeRoot avatar Nov 28 '24 00:11 BornToBeRoot

Hello @sfwwslm,

can you test the latest pre release: https://github.com/BornToBeRoot/NETworkManager/releases/tag/2024.12.31.0

The control / session should scale now based on per monitor dpi.

BornToBeRoot avatar Dec 31 '24 20:12 BornToBeRoot

@BornToBeRoot

Happy New Year! glad it was fixed so quickly, I can test it on January 2, 2025.

guowenju avatar Jan 01 '25 02:01 guowenju

@BornToBeRoot

RDP now resizes correctly

guowenju avatar Jan 02 '25 01:01 guowenju