Win32: Improve fullscreen task switching

This commit is contained in:
Elias Naur 2005-02-02 11:05:25 +00:00
parent b1c183235c
commit ba0b020caa
1 changed files with 2 additions and 3 deletions

View File

@ -298,10 +298,10 @@ static void appActivate(bool active)
if (isFullScreen) { if (isFullScreen) {
restoreDisplayMode(); restoreDisplayMode();
} }
ShowWindow(display_hwnd, SW_SHOWDEFAULT); ShowWindow(display_hwnd, SW_RESTORE);
SetForegroundWindow(display_hwnd); SetForegroundWindow(display_hwnd);
} else if (isFullScreen) { } else if (isFullScreen) {
ShowWindow(display_hwnd, SW_SHOWMINIMIZED); ShowWindow(display_hwnd, SW_SHOWMINNOACTIVE);
resetDisplayMode(NULL); resetDisplayMode(NULL);
} }
inAppActivate = false; inAppActivate = false;
@ -320,7 +320,6 @@ LRESULT CALLBACK lwjglWindowProc(HWND hWnd,
int dwheel; int dwheel;
bool oldIsMinimized; bool oldIsMinimized;
bool oldIsFocused; bool oldIsFocused;
LRESULT res;
switch (msg) { switch (msg) {
// disable screen saver and monitor power down messages which wreak havoc // disable screen saver and monitor power down messages which wreak havoc
case WM_SYSCOMMAND: case WM_SYSCOMMAND: