Skip to content

Commit

Permalink
Fix for FZ losing layout settings
Browse files Browse the repository at this point in the history
  • Loading branch information
enricogior committed Oct 7, 2020
1 parent e9a7b5d commit a27c013
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/modules/fancyzones/lib/VirtualDesktopUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@ namespace VirtualDesktopUtils
{
return true;
}
// First fallback scenario is to try obtaining virtual desktop id through IVirtualDesktopManager
// interface. Use foreground window (the window with which the user is currently working) to determine
// current virtual desktop.
else if (GetWindowDesktopId(GetForegroundWindow(), desktopId))
{
return true;
}
// Second fallback scenario is to get array of virtual desktops stored in registry, but not kept per
// First fallback scenario is to get array of virtual desktops stored in registry, but not kept per
// session. Note that we are taking first element from virtual desktop array, which is primary desktop.
// If user has more than one virtual desktop, one of previous functions should return correct value,
// as desktop switch occured in current session.
Expand Down

0 comments on commit a27c013

Please sign in to comment.