[FancyZones] Make snapping windows using Windows Snap Hotkeys across monitors optional (#2583)

* Make moving window across monitors optional

* Update tests

* Address PR comment: Update description of the toggle
This commit is contained in:
stefansjfw
2020-05-01 16:17:16 +02:00
committed by GitHub
parent 8c4dbbfbec
commit e6b74b10eb
10 changed files with 67 additions and 39 deletions

View File

@@ -771,7 +771,7 @@ bool FancyZones::OnSnapHotkey(DWORD vkCode) noexcept
if (current)
{
std::vector<HMONITOR> monitorInfo = GetMonitorsSorted();
if (monitorInfo.size() > 1)
if (monitorInfo.size() > 1 && m_settings->GetSettings()->moveWindowAcrossMonitors)
{
// Multi monitor environment.
auto currMonitorInfo = std::find(std::begin(monitorInfo), std::end(monitorInfo), current);