From 8de88ee40c7e555d88f95da300cd578d1ab69e3a Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Tue, 6 Apr 1999 13:23:08 +0000 Subject: [PATCH] The (x,y) components of the bounds are always zero. Dont change them here or the compositor (and other things probably) freaks out. --- widget/src/gtk/nsWidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widget/src/gtk/nsWidget.cpp b/widget/src/gtk/nsWidget.cpp index 643154e4f284..f5a1abcba9df 100644 --- a/widget/src/gtk/nsWidget.cpp +++ b/widget/src/gtk/nsWidget.cpp @@ -210,10 +210,12 @@ NS_METHOD nsWidget::IsVisible(PRBool &aState) NS_METHOD nsWidget::Move(PRUint32 aX, PRUint32 aY) { - mBounds.x = aX; - mBounds.y = aY; + // The (x,y) components of the bounds are always zero. Dont change + // them here or the compositor (and other things probably) freaks out. + if (mWidget) ::gtk_layout_move(GTK_LAYOUT(mWidget->parent), mWidget, aX, aY); + return NS_OK; }