From b38a9f86159358c104809073700c388a2ad3f7af Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Thu, 31 Jan 2002 22:45:26 +0000 Subject: [PATCH] Back out fixes for 121011 until I fix more issues. --- widget/src/gtk/nsWidget.h | 2 -- widget/src/gtk/nsWindow.cpp | 12 +++--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/widget/src/gtk/nsWidget.h b/widget/src/gtk/nsWidget.h index 186aa751a472..18223722a338 100644 --- a/widget/src/gtk/nsWidget.h +++ b/widget/src/gtk/nsWidget.h @@ -419,9 +419,7 @@ private: // // Keep track of the last widget being "dragged" // -public: static nsWidget *sButtonMotionTarget; -private: static gint sButtonMotionRootX; static gint sButtonMotionRootY; static gint sButtonMotionWidgetX; diff --git a/widget/src/gtk/nsWindow.cpp b/widget/src/gtk/nsWindow.cpp index 29bf57afdf36..53931ef8ea59 100644 --- a/widget/src/gtk/nsWindow.cpp +++ b/widget/src/gtk/nsWindow.cpp @@ -2752,25 +2752,19 @@ nsWindow::GetMozArea() PRBool nsWindow::GrabInProgress(void) { - // there is either an active grab or a passive grab because of a - // button motion event - return nsWindow::sIsGrabbing || nsWidget::sButtonMotionTarget; + return nsWindow::sIsGrabbing; } /* static */ nsWindow * nsWindow::GetGrabWindow(void) { - if (nsWidget::sButtonMotionTarget) { - return NS_STATIC_CAST(nsWindow *, sButtonMotionTarget); - } - if (nsWindow::sIsGrabbing) { return sGrabWindow; } - - return nsnull; + else + return nsnull; } GdkWindow *