mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
repeated browser activate events causes webpage menu disappear
This commit is contained in:
parent
090fa0e3ad
commit
08ef381f96
1 changed files with 5 additions and 0 deletions
|
@ -644,9 +644,14 @@ namespace PersistentWindows.Common
|
||||||
|
|
||||||
public static void BrowserActivate(IntPtr hwnd, bool is_browser_window = true, bool in_restore = false)
|
public static void BrowserActivate(IntPtr hwnd, bool is_browser_window = true, bool in_restore = false)
|
||||||
{
|
{
|
||||||
|
if (browserWindowActivated == is_browser_window)
|
||||||
|
return;
|
||||||
|
|
||||||
browserWindowActivated = is_browser_window;
|
browserWindowActivated = is_browser_window;
|
||||||
restoring = in_restore;
|
restoring = in_restore;
|
||||||
|
|
||||||
|
Console.WriteLine($"browser activated {hwnd.ToString("X")}");
|
||||||
|
|
||||||
if (!tiny && !User32.IsWindowVisible(commanderWnd))
|
if (!tiny && !User32.IsWindowVisible(commanderWnd))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue