Skip to content

Commit

Permalink
Revert "Fix conn sharing confirm window setup."
Browse files Browse the repository at this point in the history
This reverts commit 2cf2b0c.

No breakage is confirmed, and doing the same on Pageant.
  • Loading branch information
ranvis committed Nov 28, 2024
1 parent 4a826af commit d37e197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/sharing.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int platform_ssh_share_ask(const char *name)
{
/* blocking UI */
char *text = dupprintf("Permit sharing an existing SSH connection %s?", name);
int id = MessageBox(NULL, text,
int id = MessageBox(GetForegroundWindow(), text,
"SSH connection sharing",
MB_YESNO | MB_DEFBUTTON2 | MB_SETFOREGROUND | MB_TOPMOST | MB_SYSTEMMODAL);
sfree(text);
Expand Down

0 comments on commit d37e197

Please sign in to comment.