mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +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>();
|
public Dictionary<uint, string> processCmd = new Dictionary<uint, string>();
|
||||||
private HashSet<IntPtr> fullScreenGamingWindows = new HashSet<IntPtr>();
|
private HashSet<IntPtr> fullScreenGamingWindows = new HashSet<IntPtr>();
|
||||||
private HashSet<string> fullScreenGamingProcesses = new HashSet<string>();
|
private HashSet<string> fullScreenGamingProcesses = new HashSet<string>();
|
||||||
|
private HashSet<string> fullScreenGamingConfig = new HashSet<string>();
|
||||||
private IntPtr fullScreenGamingWindow = IntPtr.Zero;
|
private IntPtr fullScreenGamingWindow = IntPtr.Zero;
|
||||||
private bool exitFullScreenGaming = false;
|
private bool exitFullScreenGaming = false;
|
||||||
private POINT initCursorPos;
|
private POINT initCursorPos;
|
||||||
|
@ -876,7 +877,9 @@ namespace PersistentWindows.Common
|
||||||
if (normalSessions.Contains(curDisplayKey))
|
if (normalSessions.Contains(curDisplayKey))
|
||||||
{
|
{
|
||||||
// rewind disqualified capture time
|
// rewind disqualified capture time
|
||||||
UndoCapture(lastDisplayChangeTime);
|
string display_key = GetDisplayKey();
|
||||||
|
if (!fullScreenGamingConfig.Contains(display_key))
|
||||||
|
UndoCapture(lastDisplayChangeTime);
|
||||||
|
|
||||||
WriteDataDump();
|
WriteDataDump();
|
||||||
Log.Event("Display session changed, dump history in xml");
|
Log.Event("Display session changed, dump history in xml");
|
||||||
|
@ -947,6 +950,7 @@ namespace PersistentWindows.Common
|
||||||
{
|
{
|
||||||
fullScreenGamingWindow = foreGroundWindow;
|
fullScreenGamingWindow = foreGroundWindow;
|
||||||
fullScreenGamingProcesses.Add(windowProcessName[fullScreenGamingWindow]);
|
fullScreenGamingProcesses.Add(windowProcessName[fullScreenGamingWindow]);
|
||||||
|
fullScreenGamingConfig.Add(displayKey);
|
||||||
if (IsNewWindow(foreGroundWindow))
|
if (IsNewWindow(foreGroundWindow))
|
||||||
{
|
{
|
||||||
fullScreenGamingWindows.Add(fullScreenGamingWindow);
|
fullScreenGamingWindows.Add(fullScreenGamingWindow);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue