diff --git a/mozilla/widget/src/xlib/nsWidget.h b/mozilla/widget/src/xlib/nsWidget.h index e5829d1c8f2..4e8c584972e 100644 --- a/mozilla/widget/src/xlib/nsWidget.h +++ b/mozilla/widget/src/xlib/nsWidget.h @@ -210,7 +210,6 @@ protected: PRBool WidgetVisible (nsRect &aBounds); PRBool mIsShown; - PRBool mShown; int mVisibility; // this is an int because that's the way X likes it PRUint32 mPreferredWidth; PRUint32 mPreferredHeight; diff --git a/mozilla/widget/src/xlib/nsWindow.cpp b/mozilla/widget/src/xlib/nsWindow.cpp index fd2eefb1f8f..d6d9745ceef 100644 --- a/mozilla/widget/src/xlib/nsWindow.cpp +++ b/mozilla/widget/src/xlib/nsWindow.cpp @@ -454,7 +454,7 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, if (mIsTooSmall) { // if we are not shown, we don't want to force a show here, so check and see if Show(TRUE) has been called - NeedToShow = mShown; + NeedToShow = mIsShown; mIsTooSmall = PR_FALSE; } }