Repository navigation
fix: add workaround to reposition maximized windows in rdp scenario - #248537
Conversation
|
Hm.... So why would this not be a user setting but a command line argument if its not passed down to Electron anyway? And would this be something a user has to know or can we do this when we detect remote desktop sessions? I feel that the logic in native host main service is not at the correct place, that service is for exposing methods to the renderer. A better place to deal with windows in general is probably |
Wasn't sure. Can make it a setting.
Yeah this has to be advertised. There is no signal exposed from runtime today to know if session is rdp but even if exposed it won't play well with this workaround due to a race condition that the session detection in the runtime needs to happen on a different task runner https://issues.chromium.org/issues/416535750#comment2
Thanks! will update them. |
|
Robo (@deepak1556) for me to understand, is this a temporary workaround until a real Electron fix lands? |
|
Yup that is correct, the real fix will be tracked via https://issues.chromium.org/issues/416535750 |
3e579a4 to
c24084d
Compare
|
Flag in action 2025-05-12.19-10-50.mov |
Benjamin Pasero (bpasero)
left a comment
There was a problem hiding this comment.
I have one more ask: not a big fan of exposing maximizedWindowState from the window as its very specific to this problem and might be used misleadingly in other contexts.
Can we move the entire handling of a display being added into the code window actually? I think then everything is nicely put together: the code that remembers the maximised state and the code that applies it when needed.
Would that mean replicating the logic separately for aux window since that doesn't extend code window. |
|
I think not, it both extend from it: |
|
Okay I was confused when you meant code window, thought it to be |
Adopts workaround mentioned in electron/electron#47016 behind a runtime argument
enable-rdp-display-trackingas a safer opt-in.