private void HandlePrunedProcess(ProcessDetails pd)
{
// If we made this process borderless at some point, then check for a favorite that matches and undo
// some stuff to Windows.
foreach (var fav in _favorites)
{
if (fav.Matches(pd))
{
if (fav.HideWindowsTaskbar)
Manipulation.ToggleWindowsTaskbarVisibility(Tools.Boolstate.True);
if (fav.HideMouseCursor)
Manipulation.ToggleMouseCursorVisibility(window, Tools.Boolstate.True);
}
}
}