Skip to content

Commit

Permalink
Merge pull request #56 from taooceros/disable_virtualmanagerinternal
Browse files Browse the repository at this point in the history
disable virtualdesktopmanagerinternal as it is causing too much issue
  • Loading branch information
taooceros authored Feb 11, 2024
2 parents 756cedf + 6cea7e1 commit 737c981
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions Components/VirtualDesktopManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Flow.Plugin.WindowWalker.Components
{
public static class DesktopManager
{
internal static IVirtualDesktopManagerInternal? VirtualDesktopManagerInternal;
internal static IVirtualDesktopManagerInternal? VirtualDesktopManagerInternal = null;
internal static IVirtualDesktopManager? VirtualDesktopManager;
internal static IVirtualDesktopPinnedApps? VirtualDesktopPinnedApps;
public static IApplicationViewCollection? ApplicationViewCollection;
Expand Down Expand Up @@ -36,19 +36,19 @@ private static void Init()

private static void InitializeVirtualDesktopManagerInternal(IServiceProvider10? shell)
{
try
{
if (Environment.OSVersion.Version.Build >= 22631)
VirtualDesktopManagerInternal = (IVirtualDesktopManagerInternal?)shell?.QueryService(
Guids.CLSID_VirtualDesktopManagerInternal,
typeof(IVirtualDesktopManagerInternal).GUID);
}
catch (Exception e)
{
Main.Context.API.LogException($"Flow.Plugin.WindowWalker.{VirtualDesktopManager}",
"Unable to load VirtualDesktopManagerInternal", e);
VirtualDesktopManagerInternal = null;
}
// try
// {
// if (Environment.OSVersion.Version.Build >= 22631)
// VirtualDesktopManagerInternal = (IVirtualDesktopManagerInternal?)shell?.QueryService(
// Guids.CLSID_VirtualDesktopManagerInternal,
// typeof(IVirtualDesktopManagerInternal).GUID);
// }
// catch (Exception e)
// {
// Main.Context.API.LogException($"Flow.Plugin.WindowWalker.{VirtualDesktopManager}",
// "Unable to load VirtualDesktopManagerInternal", e);
// VirtualDesktopManagerInternal = null;
// }
}

internal static IApplicationView GetApplicationView(this IntPtr hWnd)
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "Window Walker",
"Description": "Alt-Tab alternative enabling searching through your windows.",
"Author": "taooceros",
"Version": "3.0.0",
"Version": "3.0.1",
"Language": "csharp",
"Website": "https://github.com/taooceros/Flow.Plugin.WindowWalker",
"ExecuteFileName": "Flow.Plugin.WindowWalker.dll",
Expand Down

0 comments on commit 737c981

Please sign in to comment.