mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Don't flash current zone setup when focused window is in full screen (#796)
This commit is contained in:
committed by
Enrico Giordani
parent
9a8ab29330
commit
57845a2739
@@ -123,6 +123,16 @@ ZoneWindow::ZoneWindow(
|
||||
MakeWindowTransparent(m_window.get());
|
||||
if (flashZones)
|
||||
{
|
||||
// Don't flash if the foreground window is in full screen mode
|
||||
RECT windowRect;
|
||||
if (GetWindowRect(GetForegroundWindow(), &windowRect) &&
|
||||
windowRect.left == mi.rcMonitor.left &&
|
||||
windowRect.top == mi.rcMonitor.top &&
|
||||
windowRect.right == mi.rcMonitor.right &&
|
||||
windowRect.bottom == mi.rcMonitor.bottom)
|
||||
{
|
||||
return;
|
||||
}
|
||||
FlashZones();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user