r=pedemont, sr=blizzard (platform specific)
OS/2 only - don't handle focus changes if a fullscreen window is in the foreground
This commit is contained in:
mkaply%us.ibm.com 2003-04-03 15:33:34 +00:00
Родитель 55188b55c0
Коммит 9b64073c8b
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -1465,9 +1465,14 @@ NS_METHOD nsWindow::SetFocus(PRBool aRaise)
#ifdef DEBUG_FOCUS
printf("[%x] SetFocus (%d)\n", this, mWindowIdentifier);
#endif
mInSetFocus = TRUE;
WinSetFocus( HWND_DESKTOP, mWnd);
mInSetFocus = FALSE;
ULONG sessionID;
DosQuerySysInfo(QSV_FOREGROUND_FS_SESSION, QSV_FOREGROUND_FS_SESSION,
&sessionID, sizeof(ULONG));
if (sessionID <= 0xFF) {
mInSetFocus = TRUE;
WinSetFocus( HWND_DESKTOP, mWnd);
mInSetFocus = FALSE;
}
}
}