mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
Win32: Improve fullscreen task switching
This commit is contained in:
parent
b1c183235c
commit
ba0b020caa
1 changed files with 2 additions and 3 deletions
|
|
@ -298,10 +298,10 @@ static void appActivate(bool active)
|
|||
if (isFullScreen) {
|
||||
restoreDisplayMode();
|
||||
}
|
||||
ShowWindow(display_hwnd, SW_SHOWDEFAULT);
|
||||
ShowWindow(display_hwnd, SW_RESTORE);
|
||||
SetForegroundWindow(display_hwnd);
|
||||
} else if (isFullScreen) {
|
||||
ShowWindow(display_hwnd, SW_SHOWMINIMIZED);
|
||||
ShowWindow(display_hwnd, SW_SHOWMINNOACTIVE);
|
||||
resetDisplayMode(NULL);
|
||||
}
|
||||
inAppActivate = false;
|
||||
|
|
@ -320,7 +320,6 @@ LRESULT CALLBACK lwjglWindowProc(HWND hWnd,
|
|||
int dwheel;
|
||||
bool oldIsMinimized;
|
||||
bool oldIsFocused;
|
||||
LRESULT res;
|
||||
switch (msg) {
|
||||
// disable screen saver and monitor power down messages which wreak havoc
|
||||
case WM_SYSCOMMAND:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue