[AlwaysOnTop]Fix border visibility with black color (#30868)

This commit is contained in:
gokcekantarci
2024-01-12 18:01:19 +03:00
committed by GitHub
parent 47761e2792
commit 4ce38d192d

View File

@@ -126,6 +126,11 @@ bool WindowBorder::Init(HINSTANCE hinstance)
return false; return false;
} }
if (!SetLayeredWindowAttributes(m_window, 0, 255, LWA_ALPHA))
{
return false;
}
// set position of the border-window behind the tracking window // set position of the border-window behind the tracking window
// helps to prevent border overlapping (happens after turning borders off and on) // helps to prevent border overlapping (happens after turning borders off and on)
SetWindowPos(m_trackingWindow SetWindowPos(m_trackingWindow