From 1a5a965846ae7ad500f4a210edc5acf8134a08a9 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 29 Oct 2023 22:42:52 +0900 Subject: [PATCH] d3d11videosink: Fix window switching in case of fullscreen mode Other Windows applications allow window switching even when an application window is in fullscreen mode. Also fixing regression introduced in 15248d8b84db9e79e6d4587b212b12ca82fc4a6b which makes restored window is always located at topmost since we do not call SetWindowPos() anymore when restoring Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp index 8cfc370..a654866 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp @@ -683,7 +683,7 @@ gst_d3d11_window_win32_change_fullscreen_mode_internal (GstD3D11WindowWin32 * swap_chain->GetContainingOutput (&output); output->GetDesc (&output_desc); - SetWindowPos (hwnd, HWND_TOPMOST, + SetWindowPos (hwnd, HWND_TOP, output_desc.DesktopCoordinates.left, output_desc.DesktopCoordinates.top, output_desc.DesktopCoordinates.right, -- 2.7.4