webpage commander: reduce window focus shifting when hand cursor is displayed (possible menu selection)

This commit is contained in:
Kang Yu 2024-09-15 15:26:01 -07:00
parent 08ef381f96
commit ebe7c5d33d

View file

@ -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();