зеркало из https://github.com/mozilla/gecko-dev.git
r=jkobal, a=brendan Frame Windows should be owned by the passed in parent, not HWND_DESKTOP
This commit is contained in:
Родитель
be29150ea1
Коммит
936f8354de
|
@ -101,11 +101,17 @@ void nsFrameWindow::RealDoCreate( HWND hwndP, nsWindow *aParent,
|
|||
|
||||
// Assume frames are toplevel. Breaks if anyone tries to do MDI, which
|
||||
// is an extra bonus feature :-)
|
||||
HWND hwndOwner;
|
||||
if (hwndP) {
|
||||
hwndOwner = hwndP;
|
||||
} else {
|
||||
hwndOwner = HWND_DESKTOP;
|
||||
} /* endif */
|
||||
hwndFrame = WinCreateWindow( HWND_DESKTOP,
|
||||
WC_FRAME,
|
||||
0, 0, // text, style
|
||||
0, 0, 0, 0, // position
|
||||
HWND_DESKTOP,
|
||||
hwndOwner,
|
||||
HWND_TOP,
|
||||
0, // ID
|
||||
&fcd, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче