зеркало из https://github.com/mozilla/pjs.git
Bug 153834: crash when changing Window's windows colors (e.g. Win XP theme change); Patch by Adam Lock <adamlock@netscape.com>, r=saari, sr=jag
This commit is contained in:
Родитель
071ab082b4
Коммит
6506f1c138
|
@ -4082,7 +4082,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
because in testing it seems an accurate harbinger of
|
||||
an impending min/max/restore change (WM_NCCALCSIZE would
|
||||
also work, but it's also sent when merely resizing.)) */
|
||||
if (wp->flags & SWP_FRAMECHANGED) {
|
||||
if (wp->flags & SWP_FRAMECHANGED && ::IsWindowVisible(mWnd)) {
|
||||
WINDOWPLACEMENT pl;
|
||||
pl.length = sizeof(pl);
|
||||
::GetWindowPlacement(mWnd, &pl);
|
||||
|
|
Загрузка…
Ссылка в новой задаче