From a0584161d9fda78e259ff831db47635e674a92d0 Mon Sep 17 00:00:00 2001 From: time-killer-games Date: Mon, 12 Aug 2019 22:11:02 -0400 Subject: [PATCH] FullScreen + StayOnTop = Big NoNo (#1851) You can't minimized the game via alt+tab if both fullscreen and stayontop. --- ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSwindow.cpp b/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSwindow.cpp index db3260a182..25aaa1a7ca 100644 --- a/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSwindow.cpp +++ b/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSwindow.cpp @@ -194,7 +194,7 @@ void window_set_fullscreen(bool full) { window_set_maximized(false); tmpWidth = window_get_width(); tmpHeight = window_get_height(); - window_set_stayontop(true); + window_set_stayontop(false); LONG_PTR style = GetWindowLongPtr(enigma::hWnd, GWL_STYLE); style &= ~(WS_CAPTION | WS_BORDER | WS_MAXIMIZEBOX | WS_MINIMIZEBOX); style |= WS_SIZEBOX;