mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
#352, add command option -capture_floating_window
This commit is contained in:
parent
eea9165382
commit
2b73c3c2bc
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue