mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-22 08:11:25 +00:00
Filter windows moved by keyboard in FancyZones
This commit is contained in:
parent
487c485911
commit
1a400bd7fd
@ -588,7 +588,7 @@ void FancyZones::UpdateDragState(require_write_lock) noexcept
|
||||
|
||||
void FancyZones::CycleActiveZoneSet(DWORD vkCode) noexcept
|
||||
{
|
||||
if (const HWND window = GetForegroundWindow())
|
||||
if (const HWND window = get_filtered_active_window())
|
||||
{
|
||||
if (const HMONITOR monitor = MonitorFromWindow(window, MONITOR_DEFAULTTONULL))
|
||||
{
|
||||
@ -604,7 +604,7 @@ void FancyZones::CycleActiveZoneSet(DWORD vkCode) noexcept
|
||||
|
||||
void FancyZones::OnSnapHotkey(DWORD vkCode) noexcept
|
||||
{
|
||||
if (const HWND window = GetForegroundWindow())
|
||||
if (const HWND window = get_filtered_active_window())
|
||||
{
|
||||
if (const HMONITOR monitor = MonitorFromWindow(window, MONITOR_DEFAULTTONULL))
|
||||
{
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "ZoneSet.h"
|
||||
#include "Zone.h"
|
||||
#include "util.h"
|
||||
#include "common/common.h"
|
||||
#include "RegistryHelpers.h"
|
||||
|
||||
#pragma comment(lib, "windowsapp")
|
||||
|
Loading…
Reference in New Issue
Block a user