[PATCH resend 2/2] ddraw: Remove topmost style when going from exclusive mode to normal.

Henri Verbeet hverbeet at gmail.com
Tue Dec 28 10:16:28 CST 2021


On Mon, 27 Dec 2021 at 15:32, Gabriel Ivăncescu <gabrielopcode at gmail.com> wrote:
> @@ -970,6 +970,9 @@ static HRESULT ddraw_set_cooperative_level(struct ddraw *ddraw, HWND window,
>
>      if (!(cooplevel & DDSCL_EXCLUSIVE) && (ddraw->cooperative_level & DDSCL_EXCLUSIVE))
>      {
> +        if (!(cooplevel & DDSCL_NOWINDOWCHANGES))
> +            SetWindowPos(window, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
> +

Something similar to patch 1/2 in this series applies here; it's not
immediately obvious from the tests whether this is the correct place
to do this, or whether something similar should be done for other
versions of D3D.



More information about the wine-devel mailing list