avoid webpage activation disturb auto restore

This commit is contained in:
Kang Yu 2024-08-09 21:02:40 -07:00
parent e7b52a035c
commit bed63a11f4
2 changed files with 10 additions and 3 deletions

View file

@ -1321,7 +1321,7 @@ namespace PersistentWindows.Common
{
IntPtr topHwnd = User32.GetAncestor(hwnd, User32.GetAncestorRoot);
if (hwnd == topHwnd)
HotKeyWindow.BrowserActivate(topHwnd);
HotKeyWindow.BrowserActivate(topHwnd, in_restore : restoringFromMem);
}
else
HotKeyWindow.BrowserActivate(hwnd, false);