Skip to content

Commit

Permalink
Don't flash current zone setup when focused window is in full screen (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vldmr11080 authored and enricogior committed Nov 30, 2019
1 parent 9a8ab29 commit 57845a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/fancyzones/lib/ZoneWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 57845a2

Please sign in to comment.