mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 06:53:26 +08:00
[FancyZones] Zone title bar fix bug when window minimizes
This commit is contained in:
parent
8d3617cdbd
commit
cdc64538c7
@ -86,7 +86,7 @@ void FancyZonesApp::InitHooks()
|
||||
}
|
||||
}
|
||||
|
||||
std::array<DWORD, 11> events_to_subscribe = {
|
||||
std::array<DWORD, 13> events_to_subscribe = {
|
||||
EVENT_SYSTEM_MOVESIZESTART,
|
||||
EVENT_SYSTEM_MOVESIZEEND,
|
||||
EVENT_OBJECT_NAMECHANGE,
|
||||
@ -94,6 +94,8 @@ void FancyZonesApp::InitHooks()
|
||||
EVENT_OBJECT_SHOW,
|
||||
EVENT_OBJECT_CREATE,
|
||||
EVENT_OBJECT_CLOAKED,
|
||||
EVENT_SYSTEM_MINIMIZESTART,
|
||||
EVENT_SYSTEM_MINIMIZEEND,
|
||||
EVENT_OBJECT_HIDE,
|
||||
EVENT_OBJECT_DESTROY,
|
||||
EVENT_SYSTEM_FOREGROUND,
|
||||
@ -173,6 +175,8 @@ void FancyZonesApp::HandleWinHookEvent(WinHookEvent* data) noexcept
|
||||
case EVENT_OBJECT_SHOW:
|
||||
case EVENT_OBJECT_CREATE:
|
||||
case EVENT_OBJECT_CLOAKED:
|
||||
case EVENT_SYSTEM_MINIMIZESTART:
|
||||
case EVENT_SYSTEM_MINIMIZEEND:
|
||||
case EVENT_OBJECT_HIDE:
|
||||
case EVENT_OBJECT_DESTROY:
|
||||
case EVENT_SYSTEM_FOREGROUND:
|
||||
|
@ -150,6 +150,7 @@ void CompositionDrawing::Init(HWND window)
|
||||
void CompositionDrawing::BeginDraw()
|
||||
{
|
||||
m_renderTarget->BeginDraw();
|
||||
m_renderTarget->Clear();
|
||||
}
|
||||
|
||||
void CompositionDrawing::EndDraw()
|
||||
|
@ -139,6 +139,7 @@ public:
|
||||
case EVENT_OBJECT_UNCLOAKED:
|
||||
case EVENT_OBJECT_SHOW:
|
||||
case EVENT_OBJECT_CREATE:
|
||||
case EVENT_SYSTEM_MINIMIZEEND:
|
||||
if (data->idObject == OBJID_WINDOW)
|
||||
{
|
||||
PostMessageW(m_window, WM_PRIV_WINDOWCREATED, wparam, lparam);
|
||||
@ -148,6 +149,7 @@ public:
|
||||
case EVENT_OBJECT_CLOAKED:
|
||||
case EVENT_OBJECT_HIDE:
|
||||
case EVENT_OBJECT_DESTROY:
|
||||
case EVENT_SYSTEM_MINIMIZESTART:
|
||||
if (data->idObject == OBJID_WINDOW)
|
||||
{
|
||||
PostMessageW(m_window, WM_PRIV_WINDOWCLOSED, wparam, lparam);
|
||||
|
Loading…
Reference in New Issue
Block a user