mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
disable UndoCapture() for full screen gaming session
This commit is contained in:
parent
384154254a
commit
7d431a22f1
1 changed files with 5 additions and 1 deletions
|
@ -93,6 +93,7 @@ namespace PersistentWindows.Common
|
|||
public Dictionary<uint, string> processCmd = new Dictionary<uint, string>();
|
||||
private HashSet<IntPtr> fullScreenGamingWindows = new HashSet<IntPtr>();
|
||||
private HashSet<string> fullScreenGamingProcesses = new HashSet<string>();
|
||||
private HashSet<string> fullScreenGamingConfig = new HashSet<string>();
|
||||
private IntPtr fullScreenGamingWindow = IntPtr.Zero;
|
||||
private bool exitFullScreenGaming = false;
|
||||
private POINT initCursorPos;
|
||||
|
@ -876,7 +877,9 @@ namespace PersistentWindows.Common
|
|||
if (normalSessions.Contains(curDisplayKey))
|
||||
{
|
||||
// rewind disqualified capture time
|
||||
UndoCapture(lastDisplayChangeTime);
|
||||
string display_key = GetDisplayKey();
|
||||
if (!fullScreenGamingConfig.Contains(display_key))
|
||||
UndoCapture(lastDisplayChangeTime);
|
||||
|
||||
WriteDataDump();
|
||||
Log.Event("Display session changed, dump history in xml");
|
||||
|
@ -947,6 +950,7 @@ namespace PersistentWindows.Common
|
|||
{
|
||||
fullScreenGamingWindow = foreGroundWindow;
|
||||
fullScreenGamingProcesses.Add(windowProcessName[fullScreenGamingWindow]);
|
||||
fullScreenGamingConfig.Add(displayKey);
|
||||
if (IsNewWindow(foreGroundWindow))
|
||||
{
|
||||
fullScreenGamingWindows.Add(fullScreenGamingWindow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue