From ebe7c5d33d434668410394d91dc05ff11e67c44c Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sun, 15 Sep 2024 15:26:01 -0700 Subject: [PATCH] webpage commander: reduce window focus shifting when hand cursor is displayed (possible menu selection) --- Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs b/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs index 4d9656d..de8eb58 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/HotKeyWindow.cs @@ -929,7 +929,7 @@ namespace PersistentWindows.Common regain_focus = false; } } - else if (!handCursor) + else if (hCursor == Cursors.Default.Handle) { /* if (!commanderWndUnderCursor) @@ -940,6 +940,10 @@ namespace PersistentWindows.Common */ regain_focus = !commanderWndUnderCursor; } + else if (!handCursor) + { + regain_focus = false; + } // let tiny hotkey window follow cursor position ResetHotKeyVirtualDesktop();