mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #571] Fit to Windows doesn't work on RDP login #3379
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#3379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pustohler on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/571
Originally assigned to: @VShawn on GitHub.
Describe the bug
In RDP properties is selected "fit to window". If such a connection is started, the app Window starts normally with a grey background but the RDP (client) content shows up only as a little square in the middle of the app. If the app window is resized the content will fit to window, but all the open windows in the client area remain small in the size of the former square an need to be resized manually.
This behaviour was not recognized within PremoteM.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
RDP client area should fit to host window seemless with all the possibly opened windows within in a normal size.
Screenshots
Desktop (please complete the following information):
Additional context
@VShawn commented on GitHub (Nov 23, 2023):
Let me explain why it is not work. The resolution setting API provided by Microsoft RDP client is only effective after the RDP desktop is displayed(after the user logs in). calling the API has no effect and does not return any error codes before this moment.
ANND the RDP client lacks a callback for desktop is shown, This means that the APP cannot determine the appropriate timing to call the resolution setting API. Currently, we are using a fixed delay as a workaround (I knew it's stupid). If the RDP desktop hasn't appeared before this delay expires, our resolution will be incorrect.
I am actively searching for a solution to address this issue by now
@pustohler commented on GitHub (Nov 24, 2023):
But in PRemoteM, which I was using before being forced to switch to 1Remote that wasn't an issue... there the client always seemless fit to the host window without any (visible) resizing or stuck in wrong client area size.
Is that not the same or similar code basis? Maybe, you can do it in 1Remote the same way like there?
@stetze commented on GitHub (Nov 24, 2023):
Maybe this is a issue with your configuration? My 1Remote works without problem. The connection automatic fits the windows size and if i resize the window 1remote automatic with the size of the window.
@VShawn commented on GitHub (Nov 25, 2023):
@pustohler They are basically the same code. I compared the two branches, and the resolution setting part is exactly the same code. The 1Remote program has made code style fixes and added new features based on the PRM code.
By the way, is your desktop resolution set at 100% scaling or a different scaling rate?
Hard to say, there's no evidence to support whether this is related to system settings or not.
@VShawn commented on GitHub (Nov 26, 2023):
hey guys, I try to fix this issue on latest nightly build.
Plz let me know if any improve or it not works since I can not reproduce this issue :)
@pustohler commented on GitHub (Nov 28, 2023):
Seems to work now. Actually I'm not really sure, what the reason was. I started the nightly build and the effect was still there. Then I deinstalled the old or currently running instance an tried again - no success. Then I removed all the registry entries and files I ever could find relating to PRemoteM or 1Remote respectively and voila! Now the nightly build does the job smoothly.
Thanks a lot VShawn!