From 80cae9e2205ce80de7efbbcc640e1464aecba786 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 13 Jan 2026 22:42:57 +0100 Subject: [PATCH] Revert "Change dwExStyle to WS_EX_APPWINDOW, SetLayeredWindowAttributes, edit kWindowName String in MpvContainer" This reverts commit 05f4c9e1f6ae182f8f6fab5015a72b3a68a8e2d5. --- windows/runner/mpv/mpv_container.cpp | 6 ++---- windows/runner/mpv/mpv_container.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/windows/runner/mpv/mpv_container.cpp b/windows/runner/mpv/mpv_container.cpp index e9e06ca4..2b332a08 100644 --- a/windows/runner/mpv/mpv_container.cpp +++ b/windows/runner/mpv/mpv_container.cpp @@ -30,15 +30,13 @@ HWND MpvContainer::Create() { ::RegisterClassExW(&window_class); // Use WS_POPUP for a borderless window without title bar. + // Use WS_EX_TOOLWINDOW | WS_EX_NOREDIRECTIONBITMAP to prevent shadow and DWM effects. handle_ = ::CreateWindowExW( - WS_EX_APPWINDOW, + WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE | WS_EX_NOREDIRECTIONBITMAP, kClassName, kWindowName, WS_POPUP, 0, 0, 100, 100, nullptr, nullptr, GetModuleHandle(nullptr), nullptr); - // Set the window to be fully opaque. This forces a redirection surface. - ::SetLayeredWindowAttributes(handle_, 0, 255, LWA_ALPHA); - // Disable DWM animations on the container. auto disable_window_transitions = TRUE; DwmSetWindowAttribute(handle_, DWMWA_TRANSITIONS_FORCEDISABLED, diff --git a/windows/runner/mpv/mpv_container.h b/windows/runner/mpv/mpv_container.h index 943f6024..e071315b 100644 --- a/windows/runner/mpv/mpv_container.h +++ b/windows/runner/mpv/mpv_container.h @@ -37,7 +37,7 @@ class MpvContainer { ITaskbarList3* taskbar_ = nullptr; static constexpr wchar_t kClassName[] = L"MPV_CONTAINER"; - static constexpr wchar_t kWindowName[] = L"Plezy Video Stream"; + static constexpr wchar_t kWindowName[] = L""; static std::unique_ptr instance_; };