зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
55188b55c0
Коммит
9b64073c8b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче