Cancel topmost mode after leaving fullscreen mode (#224)

`HWND_TOPMOST` should be cancelled with `HWND_NOTOPMOST` when it is not
needed anymore.

Co-authored-by: Volker Ruppert <Volker.Ruppert@t-online.de>
This commit is contained in:
Vort 2024-01-16 01:03:32 +02:00 committed by GitHub
parent 8528604888
commit ba7c8ed57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -825,6 +825,8 @@ void set_fullscreen_mode(BOOL enable)
if (saveParent) { if (saveParent) {
BX_DEBUG(("Restoring parent window")); BX_DEBUG(("Restoring parent window"));
SetParent(stInfo.mainWnd, saveParent); SetParent(stInfo.mainWnd, saveParent);
SetWindowPos(stInfo.mainWnd, HWND_NOTOPMOST,
0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
saveParent = NULL; saveParent = NULL;
} }
// put back the title bar, border, etc... // put back the title bar, border, etc...