make preview window not focusable

This commit is contained in:
Paddy Xu
2020-05-07 23:33:19 +03:00
parent 8881c1c774
commit 472ccc1175
2 changed files with 6 additions and 1 deletions

View File

@@ -60,6 +60,11 @@ namespace QuickLook
Topmost = SettingHelper.Get("Topmost", false);
buttonTop.Tag = Topmost ? "Top" : "Auto";
SourceInitialized += (sender, e) => this.SetNoactivate();
// bring the window to top. use together with SetNoactivate()
PreviewMouseDown += (sender, e) => this.BringToFront(false);
buttonTop.Click += (sender, e) =>
{
Topmost = !Topmost;