mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
FZ: do not activate zones window when it's shown (#8795)
This commit is contained in:
@@ -702,9 +702,7 @@ void FancyZones::ToggleEditor() noexcept
|
||||
if (showDpiWarning)
|
||||
{
|
||||
// We must show the message box in a separate thread, since this code is called from a low-level
|
||||
// keyboard hook callback, and launching messageboxes from it has unexpected side effects,
|
||||
// like triggering EVENT_SYSTEM_MOVESIZEEND prematurely.
|
||||
// TODO: understand the root cause of this, until then it's commented out.
|
||||
// keyboard hook callback, and launching messageboxes from it has unexpected side effects
|
||||
//std::thread{ [] {
|
||||
// MessageBoxW(nullptr,
|
||||
// GET_RESOURCE_STRING(IDS_SPAN_ACROSS_ZONES_WARNING).c_str(),
|
||||
|
||||
@@ -218,7 +218,7 @@ void ZoneWindowDrawing::Show(unsigned animationMillis)
|
||||
|
||||
if (!m_animation)
|
||||
{
|
||||
ShowWindow(m_window, SW_SHOWDEFAULT);
|
||||
ShowWindow(m_window, SW_SHOWNA);
|
||||
if (animationMillis > 0)
|
||||
{
|
||||
m_animation.emplace(AnimationInfo{ std::chrono::steady_clock().now(), animationMillis });
|
||||
|
||||
Reference in New Issue
Block a user