Back out fixes for 121011 until I fix more issues.

This commit is contained in:
blizzard%redhat.com 2002-01-31 22:45:26 +00:00
Родитель 967b747f73
Коммит b38a9f8615
2 изменённых файлов: 3 добавлений и 11 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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 *