#352, add command option -capture_floating_window

This commit is contained in:
Kang Yu 2024-09-09 17:00:48 -07:00
parent eea9165382
commit 2b73c3c2bc
2 changed files with 6 additions and 0 deletions

View file

@ -52,6 +52,7 @@ namespace PersistentWindows.Common
//private long lastKilledWindowId = 0; //monotonically increasing unique id for every killed window
private string persistDbName = null; //on-disk database name
private Dictionary<string, POINT> lastCursorPos = new Dictionary<string, POINT>();
public bool captureFloatingWindow = false;
private HashSet<IntPtr> allUserMoveWindows = new HashSet<IntPtr>();
private HashSet<IntPtr> unResponsiveWindows = new HashSet<IntPtr>();
private HashSet<IntPtr> noRecordWindows = new HashSet<IntPtr>();
@ -1826,6 +1827,8 @@ namespace PersistentWindows.Common
{
if (hwnd != foreGroundWindow)
pendingMoveEvents.Enqueue(hwnd);
else if (captureFloatingWindow)
allUserMoveWindows.Add(hwnd);
}
if (foreGroundWindow == hwnd)