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:
parent
8528604888
commit
ba7c8ed57a
@ -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...
|
||||||
|
Loading…
Reference in New Issue
Block a user