From: Seungha Yang Date: Sun, 29 Oct 2023 13:42:52 +0000 (+0900) Subject: d3d11videosink: Fix window switching in case of fullscreen mode X-Git-Tag: 1.22.7~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a5a965846ae7ad500f4a210edc5acf8134a08a9;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp index 8cfc370ce5..a654866384 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,