mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
r=jkobal, sr=blizzard Os/2 only - don't allow recursive calls to WinSetFocus - bad things happen.
This commit is contained in:
parent
4defc1ce1a
commit
226aeee63d
@ -158,6 +158,7 @@ nsWindow::nsWindow() : nsBaseWidget()
|
||||
mFont = nsnull;
|
||||
mOS2Toolkit = nsnull;
|
||||
mIsScrollBar = FALSE;
|
||||
mInSetFocus = FALSE;
|
||||
|
||||
mIsTopWidgetWindow = PR_FALSE;
|
||||
}
|
||||
@ -1400,10 +1401,15 @@ NS_METHOD nsWindow::SetFocus(PRBool aRaise)
|
||||
}
|
||||
else
|
||||
if (mWnd) {
|
||||
if (!mInSetFocus) {
|
||||
#ifdef DEBUG_FOCUS
|
||||
printf("[%x] SetFocus (%d)\n", this, mWindowIdentifier);
|
||||
#endif
|
||||
mInSetFocus = TRUE;
|
||||
WinSetFocus( HWND_DESKTOP, mWnd);
|
||||
mInSetFocus = FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user