Skip to content

Commit

Permalink
consistency fix for the show desktop fix. updated task scheduler libr…
Browse files Browse the repository at this point in the history
…ary. updated assembly version and change log.
  • Loading branch information
ArcadeRenegade committed Mar 12, 2016
1 parent 8c812a9 commit 9c7d06d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
7 changes: 7 additions & 0 deletions SidebarDiagnostics/ChangeLog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[
{
"Version": "3.3.4",
"Changes": [
"Made the \"Show Desktop\" fix for when \"Always on Top\" is disabled to be more consistent.",
"Want to help translate? Please visit the GitHub wiki!"
]
},
{
"Version": "3.3.3",
"Changes": [
Expand Down
4 changes: 2 additions & 2 deletions SidebarDiagnostics/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3.3.0")]
[assembly: AssemblyFileVersion("3.3.3.0")]
[assembly: AssemblyVersion("3.3.4.0")]
[assembly: AssemblyFileVersion("3.3.4.0")]
4 changes: 2 additions & 2 deletions SidebarDiagnostics/SidebarDiagnostics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
<HintPath>..\packages\squirrel.windows.1.2.4\lib\Net45\ICSharpCode.SharpZipLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Win32.TaskScheduler, Version=2.5.14.0, Culture=neutral, PublicKeyToken=0d013ddd5178a2ae, processorArchitecture=MSIL">
<HintPath>..\packages\TaskScheduler.2.5.14\lib\net40\Microsoft.Win32.TaskScheduler.dll</HintPath>
<Reference Include="Microsoft.Win32.TaskScheduler, Version=2.5.15.0, Culture=neutral, PublicKeyToken=0d013ddd5178a2ae, processorArchitecture=MSIL">
<HintPath>..\packages\TaskScheduler.2.5.15\lib\net40\Microsoft.Win32.TaskScheduler.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
Expand Down
8 changes: 6 additions & 2 deletions SidebarDiagnostics/Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public static void AddHook(Sidebar sidebar)
_delegate = new WinEventDelegate(WinEventHook);
_hookIntPtr = NativeMethods.SetWinEventHook(EVENT_SYSTEM_FOREGROUND, EVENT_SYSTEM_FOREGROUND, IntPtr.Zero, _delegate, 0, 0, WINEVENT_OUTOFCONTEXT);
_sidebar = sidebar;
_sidebarHwnd = new WindowInteropHelper(sidebar).Handle;
}

public static void RemoveHook()
Expand All @@ -170,6 +171,7 @@ public static void RemoveHook()
_delegate = null;
_hookIntPtr = null;
_sidebar = null;
_sidebarHwnd = null;
}

private static string GetWindowClass(IntPtr hwnd)
Expand All @@ -191,9 +193,9 @@ private static void WinEventHook(IntPtr hWinEventHook, uint eventType, IntPtr hw
{
_sidebar.SetTopMost(false);
}
else
else if (_sidebar.IsTopMost)
{
_sidebar.ClearTopMost(false);
_sidebar.SetBottom(false);
}
}
}
Expand All @@ -205,6 +207,8 @@ private static void WinEventHook(IntPtr hWinEventHook, uint eventType, IntPtr hw
private static WinEventDelegate _delegate { get; set; }

private static Sidebar _sidebar { get; set; }

private static IntPtr? _sidebarHwnd { get; set; }
}

public static class Devices
Expand Down
2 changes: 1 addition & 1 deletion SidebarDiagnostics/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<package id="OxyPlot.Wpf" version="1.0.0-unstable2039" targetFramework="net461" />
<package id="Splat" version="1.6.2" targetFramework="net461" />
<package id="squirrel.windows" version="1.2.4" targetFramework="net461" />
<package id="TaskScheduler" version="2.5.14" targetFramework="net461" />
<package id="TaskScheduler" version="2.5.15" targetFramework="net461" />
<package id="VirtualDesktop" version="1.0.3" targetFramework="net461" />
<package id="VirtualDesktop.WPF" version="1.0.3" targetFramework="net461" />
</packages>

0 comments on commit 9c7d06d

Please sign in to comment.