diff --git a/BorderlessGaming.Logic/Core/ProcessWatcher.cs b/BorderlessGaming.Logic/Core/ProcessWatcher.cs
index 592870f..c479baa 100644
--- a/BorderlessGaming.Logic/Core/ProcessWatcher.cs
+++ b/BorderlessGaming.Logic/Core/ProcessWatcher.cs
@@ -87,6 +87,25 @@ private async void Watch()
}
}
+ public void ResetMadeBorderless(Favorite fav)
+ {
+ foreach (var pd in Processes)
+ {
+ try
+ {
+ if (fav.Matches(pd))
+ {
+ pd.MadeBorderless = false;
+ pd.MadeBorderlessAttempts = 0;
+ }
+ }
+ catch
+ {
+ // ignored
+ }
+ }
+ }
+
///
/// remove the menu, resize the window, remove border, and maximize
///
diff --git a/BorderlessGaming/BorderlessGaming.csproj b/BorderlessGaming/BorderlessGaming.csproj
index b6cbe82..3a89117 100644
--- a/BorderlessGaming/BorderlessGaming.csproj
+++ b/BorderlessGaming/BorderlessGaming.csproj
@@ -238,9 +238,9 @@
$(PostBuildEventDependsOn);
PostBuildMacros;
- call signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /as /sha1 3BD5BE571287FE2052F137C44198AE7BAB38B037 "$(ProjectDir)$(OutDir)$(TargetFileName)"
-call iscc /Qp "$(SolutionDir)\Installers\BorderlessGaming_Standalone_Admin.iss"
-call signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /as /sha1 3BD5BE571287FE2052F137C44198AE7BAB38B037 "$(SolutionDir)Installers\BorderlessGaming@(VersionNumber)_admin_setup.exe"
+
+
+
copy $(SolutionDir)SteamLibs\* $(ProjectDir)$(OutDir)
diff --git a/BorderlessGaming/Forms/MainWindow.Designer.cs b/BorderlessGaming/Forms/MainWindow.Designer.cs
index f6715e8..7a6333c 100644
--- a/BorderlessGaming/Forms/MainWindow.Designer.cs
+++ b/BorderlessGaming/Forms/MainWindow.Designer.cs
@@ -59,6 +59,7 @@ private void InitializeComponent()
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripAlwaysOnTop = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripDelayBorderless = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripForceResize = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripHideMouseCursor = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripHideWindowsTaskbar = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripRemoveMenus = new System.Windows.Forms.ToolStripMenuItem();
@@ -258,6 +259,7 @@ private void InitializeComponent()
this.toolStripMenuItem4,
this.toolStripAlwaysOnTop,
this.toolStripDelayBorderless,
+ this.toolStripForceResize,
this.toolStripHideMouseCursor,
this.toolStripHideWindowsTaskbar,
this.toolStripRemoveMenus,
@@ -331,6 +333,15 @@ private void InitializeComponent()
this.toolStripDelayBorderless.Name = "toolStripDelayBorderless";
this.toolStripDelayBorderless.Text = LanguageManager.Data("toolStripDelayBorderless");
this.toolStripDelayBorderless.Click += new System.EventHandler(this.delayBorderlessToolStripMenuItem_Click);
+ //
+ // toolStripForceResize
+ //
+ resources.ApplyResources(this.toolStripForceResize, "toolStripForceResize");
+ this.toolStripForceResize.Name = "toolStripForceResize";
+ // this.toolStripForceResize.Text = LanguageManager.Data("toolStripForceResize");
+ // TODO Language data
+ this.toolStripForceResize.Text = "Force Resize";
+ this.toolStripForceResize.Click += new System.EventHandler(this.toolStripForceResize_Click);
//
// hideMouseCursorToolStripMenuItem
//
@@ -831,6 +842,7 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem9;
private System.Windows.Forms.ToolStripMenuItem toolStripAlwaysOnTop;
private System.Windows.Forms.ToolStripMenuItem toolStripDelayBorderless;
+ private System.Windows.Forms.ToolStripMenuItem toolStripForceResize;
private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem toolStripToggleWindowsTaskbar;
private System.Windows.Forms.ToolStripMenuItem toolStripSetWindowTitle;
diff --git a/BorderlessGaming/Forms/MainWindow.cs b/BorderlessGaming/Forms/MainWindow.cs
index f4acf40..3da0121 100644
--- a/BorderlessGaming/Forms/MainWindow.cs
+++ b/BorderlessGaming/Forms/MainWindow.cs
@@ -749,6 +749,11 @@ private void delayBorderlessToolStripMenuItem_Click(object sender, EventArgs e)
RefreshFavoritesList(fav);
}
+ private void toolStripForceResize_Click(object sender, EventArgs e)
+ {
+ _watcher.ResetMadeBorderless((Favorite) lstFavorites.SelectedItem);
+ }
+
///
/// Sets up the Favorite-ContextMenu according to the current state
///
diff --git a/BorderlessGaming/Forms/MainWindow.en-US.resx b/BorderlessGaming/Forms/MainWindow.en-US.resx
index ce960d1..543ac26 100644
--- a/BorderlessGaming/Forms/MainWindow.en-US.resx
+++ b/BorderlessGaming/Forms/MainWindow.en-US.resx
@@ -194,6 +194,9 @@
207, 22
+
+ 207, 22
+
207, 22
diff --git a/BorderlessGaming/Forms/MainWindow.resx b/BorderlessGaming/Forms/MainWindow.resx
index 427c36e..4c5acd9 100644
--- a/BorderlessGaming/Forms/MainWindow.resx
+++ b/BorderlessGaming/Forms/MainWindow.resx
@@ -669,6 +669,9 @@
Delay Borderless Window
+
+ Force Resize
+
System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
@@ -687,6 +690,9 @@
toolStripDelayBorderless
+
+ toolStripForceResize
+
AAABAAYAICAAAAEACACoCAAAZgAAABgYAAABAAgAyAYAAA4JAAAQEAAAAQAIAGgFAADWDwAAQEAAAAEA
diff --git a/Languages/en-US.lang b/Languages/en-US.lang
index f005491..62edb18 100644
--- a/Languages/en-US.lang
+++ b/Languages/en-US.lang
@@ -63,6 +63,7 @@ toolStripAutomaximize|Auto-Maximize
toolStripAdjustWindowBounds|Adjust Window bounds
toolStripAlwaysOnTop|Always On Top
toolStripDelayBorderless|Delay Borderless Window
+toolStripForceResize|Force Resize
toolStripHideMouseCursor|Hide Mouse Cursor
toolStripHideWindowsTaskbar|Hide Windows Taskbar
toolStripRemoveMenus|Remove Menus
@@ -80,4 +81,4 @@ steamHint|Prevents "In-App" on Steam
addFavorite|Adds the currently-selected application to your favorites list (by the window title).
removeFavorite|Removes the currently-selected favorite from the list.
makeBorderless|Makes the currently-selected application borderless.
-restoreBorders|Attempts to restore a window back to its bordered state.
\ No newline at end of file
+restoreBorders|Attempts to restore a window back to its bordered state.