RDP tabs on Windows: no visible mstsc windows and resolution follows the tab size. mstsc is started with /v: instead of an unsigned .rdp file (avoids the mandatory "unknown publisher" security warning; a file is still used when the host needs drive redirection, clipboard/audio off or scaling); a WinEvent hook adopts the session window while it is still hidden (borderless, parked off-screen until logged in), keeps the "connecting" progress dialog invisible and shows real prompts (certificate, errors) centered over the tab; servers without dynamic resolution (mstsc clamps the window to the session size) are detected and reconnected with the new size after resizing, re-confirming a certificate the user already accepted for this session
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1994,6 +1994,10 @@ class RdpSession {
|
||||
this.overlay?.remove(); this.overlay = null;
|
||||
setTabState(this, 'on');
|
||||
if (this.isVisible()) { this.pushBounds(); api.rdp.show(this.id); } else api.rdp.hide(this.id);
|
||||
} else if (type === 'resizing') {
|
||||
this.attached = false;
|
||||
setTabState(this, 'wait');
|
||||
this.showOverlay(T('Adjusting resolution …'));
|
||||
} else if (type === 'exit') {
|
||||
this.attached = false; this.exited = true;
|
||||
setTabState(this, payload?.code ? 'err' : '');
|
||||
|
||||
Reference in New Issue
Block a user