From 8a82b5e58be944ce070b1bb8221e96bea0b0ccb8 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Sat, 10 Jul 1999 23:27:25 +0000 Subject: [PATCH] always move the window, even if it hasn't been shown. this fixes gfx drop down lists. git-svn-id: svn://10.0.0.236/trunk@38977 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/xlib/nsWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/widget/src/xlib/nsWidget.cpp b/mozilla/widget/src/xlib/nsWidget.cpp index 7aeac32282d..8f5dcb7131e 100644 --- a/mozilla/widget/src/xlib/nsWidget.cpp +++ b/mozilla/widget/src/xlib/nsWidget.cpp @@ -687,10 +687,10 @@ void nsWidget::WidgetMove(nsWidget *aWidget) PR_LOG(XlibScrollingLM, PR_LOG_DEBUG, ("nsWidget::WidgetMove()\n")); if (PR_TRUE == WidgetVisible(aWidget->mBounds)) { PR_LOG(XlibScrollingLM, PR_LOG_DEBUG, ("Widget is visible...\n")); + XMoveWindow(aWidget->mDisplay, aWidget->mBaseWindow, + aWidget->mBounds.x, + aWidget->mBounds.y); if (aWidget->mIsShown == PR_TRUE) { - XMoveWindow(aWidget->mDisplay, aWidget->mBaseWindow, - aWidget->mBounds.x, - aWidget->mBounds.y); PR_LOG(XlibScrollingLM, PR_LOG_DEBUG, ("Mapping window 0x%lx...\n", mBaseWindow)); XMapWindow(aWidget->mDisplay, aWidget->mBaseWindow); }