diff --git a/src/RegionToShare/App.config b/src/RegionToShare/App.config
index 3929d22..e247f72 100644
--- a/src/RegionToShare/App.config
+++ b/src/RegionToShare/App.config
@@ -22,6 +22,9 @@
False
+
+ True
+
\ No newline at end of file
diff --git a/src/RegionToShare/MainWindow.xaml b/src/RegionToShare/MainWindow.xaml
index 79fbcc4..8ed3862 100644
--- a/src/RegionToShare/MainWindow.xaml
+++ b/src/RegionToShare/MainWindow.xaml
@@ -62,6 +62,10 @@
+
+
diff --git a/src/RegionToShare/MainWindow.xaml.cs b/src/RegionToShare/MainWindow.xaml.cs
index 747085a..b39243a 100644
--- a/src/RegionToShare/MainWindow.xaml.cs
+++ b/src/RegionToShare/MainWindow.xaml.cs
@@ -233,6 +233,7 @@ private void OnMouseLeftButtonDown()
NativeWindowRect += GlassFrameThickness;
+ ShowInTaskbar = true;
BringToFront();
};
@@ -351,6 +352,7 @@ public void SendToBack()
{
SetSeparationLayerPos(SWP_NOACTIVATE | SWP_SHOWWINDOW);
SetWindowPos(_windowHandle, _separationLayerHandle, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+ ShowInTaskbar = false;
}
private void SetSeparationLayerPos(uint flags)
diff --git a/src/RegionToShare/Properties/Settings.Designer.cs b/src/RegionToShare/Properties/Settings.Designer.cs
index dc9bdef..52020ea 100644
--- a/src/RegionToShare/Properties/Settings.Designer.cs
+++ b/src/RegionToShare/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace RegionToShare.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -82,5 +82,17 @@ public bool StartActivated {
this["StartActivated"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool ShowCloseButton {
+ get {
+ return ((bool)(this["ShowCloseButton"]));
+ }
+ set {
+ this["ShowCloseButton"] = value;
+ }
+ }
}
}
diff --git a/src/RegionToShare/Properties/Settings.settings b/src/RegionToShare/Properties/Settings.settings
index c636dba..8582ae5 100644
--- a/src/RegionToShare/Properties/Settings.settings
+++ b/src/RegionToShare/Properties/Settings.settings
@@ -17,5 +17,8 @@
False
+
+ True
+
\ No newline at end of file
diff --git a/src/RegionToShare/RecordingWindow.xaml b/src/RegionToShare/RecordingWindow.xaml
index 3ac3d72..e1b3bf8 100644
--- a/src/RegionToShare/RecordingWindow.xaml
+++ b/src/RegionToShare/RecordingWindow.xaml
@@ -3,13 +3,16 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:RegionToShare"
+ xmlns:local="clr-namespace:RegionToShare"
+ xmlns:properties="clr-namespace:RegionToShare.Properties"
mc:Ignorable="d"
WindowStyle="None" Background="Transparent"
AllowsTransparency="True" Topmost="True"
- ShowInTaskbar="False"
- Title="Region to Share - Source Region" Height="450" Width="800">
-
+ Title="Region to Share" Height="450" Width="800">
+
+
+
+
@@ -23,7 +26,8 @@