fix ghost window stealing input focus when exiting dialogs opened by hotkeys, or something like that

This commit is contained in:
zeromus 2017-07-17 09:56:55 -05:00
parent f424a22033
commit 3ef2196a28
1 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,9 @@ namespace BizHawk.Client.EmuHawk.WinFormExtensions
public static DialogResult ShowHawkDialog(this CommonDialog form)
{
GlobalWin.Sound.StopSound();
var result = form.ShowDialog(new Form() { TopMost = true });
var tempForm = new Form() { TopMost = true };
var result = form.ShowDialog(tempForm);
tempForm.Dispose();
GlobalWin.Sound.StartSound();
return result;
}