We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c36665 commit 24750cfCopy full SHA for 24750cf
src/Files.App/MainWindow.xaml.cs
@@ -356,13 +356,10 @@ public bool SetCanWindowToFront(bool canWindowToFront)
356
private const int WM_WINDOWPOSCHANGING = 0x0046;
357
private void WindowManager_WindowMessageReceived(object? sender, WinUIEx.Messaging.WindowMessageEventArgs e)
358
{
359
- if (!CanWindowToFront)
+ if ((!CanWindowToFront) && e.Message.MessageId == WM_WINDOWPOSCHANGING)
360
361
- if (e.Message.MessageId == WM_WINDOWPOSCHANGING)
362
- {
363
- Win32Helper.ForceWindowPosition(e.Message.LParam);
364
- e.Handled = true;
365
- }
+ Win32Helper.ForceWindowPosition(e.Message.LParam);
+ e.Handled = true;
366
}
367
368
0 commit comments