Move SetIsLocked call from WindowPos to PluginWindow initialization

This commit is contained in:
Stone_Red
2026-06-27 19:17:49 +02:00
parent c6b973b111
commit 33962cd68b
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -84,7 +84,6 @@ namespace DesktopMagic
window.Topmost = false;
SendWpfWindowBack(window);
SendWpfWindowBack(window);
WindowPos.SetIsLocked(window, true);
break;
case "Always on Top":
window.Topmost = true;
@@ -323,6 +323,7 @@ public partial class PluginWindow : Window, IPluginWindow
imageBorder.BorderThickness = new Thickness(0);
image.Margin = new Thickness(0);
WindowPos.SetWindowLayer(this, pluginClassInstance?.windowLayer.Value ?? "Always on Bottom");
WindowPos.SetIsLocked(window, true);
tileBar.CaptionHeight = 0;
ResizeMode = ResizeMode.NoResize;
}