FZ: fix incorrect snapping zoning behavior caused by calling MessageBox from LLKBHook cb (#8473)

* Revert "add logging to hide/show window and shift press (#8392)"

This reverts commit df3d007a1b.

* FZ: fix incorrect snapping zoning behavior caused by calling MessageBox from LLKBHook cb
This commit is contained in:
Andrey Nekrasov
2020-12-08 15:16:06 +03:00
committed by GitHub
parent 292939c4a1
commit 9d0d5db948
2 changed files with 11 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
#include "pch.h"
#include <common/common.h>
#include <common/logger/logger.h>
#include <common/on_thread_executor.h>
#include "FancyZonesData.h"
@@ -319,11 +318,9 @@ ZoneWindow::SaveWindowProcessToZoneIndex(HWND window) noexcept
IFACEMETHODIMP_(void)
ZoneWindow::ShowZoneWindow() noexcept
{
Logger::trace("ShowZoneWindow: Enter");
auto window = m_window.get();
if (!window)
{
Logger::trace("ShowZoneWindow: no window");
return;
}
@@ -345,16 +342,11 @@ ZoneWindow::HideZoneWindow() noexcept
{
if (m_window)
{
Logger::trace("HideZoneWindow: hiding");
m_zoneWindowDrawing->Hide();
m_keyLast = 0;
m_windowMoveSize = nullptr;
m_highlightZone = {};
}
else
{
Logger::trace("HideZoneWindow: no window");
}
}
IFACEMETHODIMP_(void)