Skip to content

Commit a27c013

Browse files
committed
Fix for FZ losing layout settings
1 parent e9a7b5d commit a27c013

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/modules/fancyzones/lib/VirtualDesktopUtils.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,7 @@ namespace VirtualDesktopUtils
8686
{
8787
return true;
8888
}
89-
// First fallback scenario is to try obtaining virtual desktop id through IVirtualDesktopManager
90-
// interface. Use foreground window (the window with which the user is currently working) to determine
91-
// current virtual desktop.
92-
else if (GetWindowDesktopId(GetForegroundWindow(), desktopId))
93-
{
94-
return true;
95-
}
96-
// Second fallback scenario is to get array of virtual desktops stored in registry, but not kept per
89+
// First fallback scenario is to get array of virtual desktops stored in registry, but not kept per
9790
// session. Note that we are taking first element from virtual desktop array, which is primary desktop.
9891
// If user has more than one virtual desktop, one of previous functions should return correct value,
9992
// as desktop switch occured in current session.

0 commit comments

Comments
 (0)