merges from head

git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53737 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com
1999-11-17 03:27:47 +00:00
parent dbd81545d5
commit fe94a6ca17
2 changed files with 3 additions and 0 deletions

View File

@@ -2080,6 +2080,7 @@ nsWidget::OnFocusInSignal(GdkEventFocus * aGdkFocusEvent)
if (gdkWindow)
{
gdk_im_begin ((GdkIC*)mIC, gdkWindow);
#if 0
// set spot location
nsCompositionEvent compEvent;
nsEventStatus status;
@@ -2093,6 +2094,7 @@ nsWidget::OnFocusInSignal(GdkEventFocus * aGdkFocusEvent)
DispatchEvent(&compEvent, status);
// set SpotLocation
SetXICSpotLocation(compEvent.theReply.mCursorPosition);
#endif
}
else
{

View File

@@ -188,6 +188,7 @@ NS_IMETHODIMP nsWindow::Destroy()
// window, for example, the application will exit as it should.
if (mIsDestroyingWindow == PR_TRUE) {
NS_IF_RELEASE(mParent);
nsBaseWidget::Destroy();
if (PR_FALSE == mOnDestroyCalled) {
nsWidget::OnDestroy();