fix: change accent_state

close #309
This commit is contained in:
edde746
2026-01-21 00:42:49 +01:00
parent 6720137edc
commit 737da40bbd
+2 -2
View File
@@ -97,7 +97,7 @@ void MpvCore::SetVisible(bool visible) {
::SetWindowPos(flutter_window_, nullptr, 0, 0, 0, 0,
SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
if (!composition_enabled_) {
SetWindowComposition(flutter_window_, 6, 0);
SetWindowComposition(flutter_window_, 2, 0);
composition_enabled_ = true;
}
::ShowWindow(container_, SW_SHOWNOACTIVATE);
@@ -160,7 +160,7 @@ std::optional<HRESULT> MpvCore::WindowProc(HWND hwnd, UINT message,
::SetWindowPos(flutter_window_, nullptr, 0, 0, 0, 0,
SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
if (!composition_enabled_) {
SetWindowComposition(flutter_window_, 6, 0);
SetWindowComposition(flutter_window_, 2, 0);
composition_enabled_ = true;
}
::ShowWindow(container_, SW_SHOWNOACTIVATE);