mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 21:15:38 +02:00
keep webpage commander visible (with safe distance from mouse cursor) on top of non-uniform background (like video/picture)
This commit is contained in:
parent
d3b1862113
commit
451ecb9424
1 changed files with 4 additions and 0 deletions
|
@ -865,6 +865,8 @@ namespace PersistentWindows.Common
|
|||
if (hCursor == Cursors.Default.Handle)
|
||||
{
|
||||
handCursor = false;
|
||||
|
||||
/*
|
||||
if (!commanderWndUnderCursor && !IsSimilarColor(IntPtr.Zero, cursorPos.X - Width/2, cursorPos.Y - Height/2, 12, 12))
|
||||
{
|
||||
// hide hotkey window to allow click through possible link
|
||||
|
@ -874,9 +876,11 @@ namespace PersistentWindows.Common
|
|||
StartAliveTimer(11, 1000);
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
if (!commanderWndUnderCursor && !IsUniColor(IntPtr.Zero, cursorPos.X - Width / 2, cursorPos.Y - Height / 2, 12, 12))
|
||||
{
|
||||
// shift commander window to allow click possible link
|
||||
Left = cursorPos.X - 10;
|
||||
Top = cursorPos.Y - 10;
|
||||
totalWaitSecondsForWhiteColor = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue