зеркало из https://github.com/mozilla/pjs.git
r=pedemont, sr=blizzard (platform specific code) Inserting a frame window in client Z order is bad. Very bad.
This commit is contained in:
Родитель
b9a218c0c4
Коммит
4e39fe98d8
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче