From ff4477a14ebf8cd2b4a8d529816eb0d6882026f5 Mon Sep 17 00:00:00 2001 From: spider Date: Thu, 25 Jun 1998 05:39:02 +0000 Subject: [PATCH] once again runs under unix. --- widget/src/motif/nsWindow.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/widget/src/motif/nsWindow.cpp b/widget/src/motif/nsWindow.cpp index 272bb0a8d485..fbf5797d13c7 100644 --- a/widget/src/motif/nsWindow.cpp +++ b/widget/src/motif/nsWindow.cpp @@ -262,6 +262,12 @@ void nsWindow::CreateWindow(nsNativeWidget aNativeParent, // save the event callback function mEventCallback = aHandleEventFunction; + if (0==aNativeParent) { + parentWidget = (Widget) aInitData ; + } + else + parentWidget = (Widget)aNativeParent; + // keep a reference to the toolkit object if (aContext) { mContext = aContext; @@ -279,16 +285,10 @@ void nsWindow::CreateWindow(nsNativeWidget aNativeParent, kDeviceContextIID, (void **)&mContext); if (NS_OK == res) { - mContext->Init(nsnull); + mContext->Init(parentWidget); } } - if (0==aNativeParent) { - parentWidget = (Widget) aInitData ; - } - else - parentWidget = (Widget)aNativeParent; - Widget frameParent = 0; if (!aNativeParent) {