Skip to content

Commit

Permalink
FullScreen + StayOnTop = Big NoNo (#1851)
Browse files Browse the repository at this point in the history
You can't minimized the game via alt+tab if both fullscreen and stayontop.
  • Loading branch information
time-killer-games authored and JoshDreamland committed Aug 13, 2019
1 parent c9352a7 commit a058416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSwindow.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a058416

Please sign in to comment.