Skip to content

Commit d95e746

Browse files
authored
Merge pull request #133 from cairoshell/fix-task-close
Fix closing task not correctly coming to foreground
2 parents 5a51f5e + c53f5aa commit d95e746

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ManagedShell.WindowsTasks/ApplicationWindow.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ private void makeForeground()
700700

701701
internal IntPtr DoClose()
702702
{
703+
makeForeground();
703704
IntPtr retval = IntPtr.Zero;
704705
NativeMethods.SendMessageTimeout(Handle, (int)NativeMethods.WM.SYSCOMMAND, NativeMethods.SC_CLOSE, 0, 2, 200, ref retval);
705706

0 commit comments

Comments
 (0)