r=pedemont, sr=blizzard (platform specific code)
Inserting a frame window in client Z order is bad. Very bad.
This commit is contained in:
mkaply%us.ibm.com 2003-01-14 22:29:58 +00:00
Родитель b9a218c0c4
Коммит 4e39fe98d8
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -2197,6 +2197,10 @@ void nsWindow::ConstrainZLevel(HWND *aAfter) {
*aAfter = HWND_TOP;
else {
*aAfter = (HWND)event.mActualBelow->GetNativeData(NS_NATIVE_WINDOW);
/* If we have a client window, use the frame */
if (WinQueryWindowUShort(*aAfter, QWS_ID) == FID_CLIENT) {
*aAfter = WinQueryWindow(*aAfter, QW_PARENT);
}
}
}
NS_IF_RELEASE(event.mActualBelow);