capture floating window by default, disable by -capture_floating_window=0

This commit is contained in:
Kang Yu 2024-10-31 22:48:13 -07:00
parent 8e33aab670
commit cea1088a7d
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,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;
public bool captureFloatingWindow = true;
private HashSet<IntPtr> allUserMoveWindows = new HashSet<IntPtr>();
private HashSet<IntPtr> unResponsiveWindows = new HashSet<IntPtr>();
private HashSet<IntPtr> noRecordWindows = new HashSet<IntPtr>();

View file

@ -173,8 +173,8 @@ if not errorlevel 1 goto wait_to_finish";
case "-delay_auto_capture":
delay_auto_capture = 1;
break;
case "-capture_floating_window":
pwp.captureFloatingWindow = true;
case "-capture_floating_window=0":
pwp.captureFloatingWindow = false;
break;
case "-dpi_sensitive_call=1":
User32.DpiSenstiveCall = true;