From 758525aa3c2456e8ff53f116d10f2590b0d59843 Mon Sep 17 00:00:00 2001 From: "kmcclusk%netscape.com" Date: Wed, 16 Sep 1998 16:44:25 +0000 Subject: [PATCH] More modifications to nsWindow.cpp to match nsIWidget interface. --- widget/src/motif/nsWindow.cpp | 2 +- widget/src/motif/nsWindow.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/widget/src/motif/nsWindow.cpp b/widget/src/motif/nsWindow.cpp index 2da1b3d28106..d68dedd1e50e 100644 --- a/widget/src/motif/nsWindow.cpp +++ b/widget/src/motif/nsWindow.cpp @@ -1166,7 +1166,7 @@ PRBool nsWindow::ConvertStatus(nsEventStatus aStatus) PRBool nsWindow::DispatchEvent(nsGUIEvent* event) { PRBool result = PR_FALSE; - event->widgetSupports = this; + event->widgetSupports = (nsISupports*)((nsObject*)this); if (nsnull != mEventCallback) { result = ConvertStatus((*mEventCallback)(event)); diff --git a/widget/src/motif/nsWindow.h b/widget/src/motif/nsWindow.h index b77540c94c3d..7ae7e39594af 100644 --- a/widget/src/motif/nsWindow.h +++ b/widget/src/motif/nsWindow.h @@ -136,6 +136,9 @@ public: void SetIgnoreResize(PRBool aIgnore); PRBool IgnoreResize(); PRUint32 GetYCoord(PRUint32 aNewY); + PRBool DispatchMouseEvent(nsMouseEvent& aEvent); + PRBool OnResize(nsSizeEvent &aEvent); + // Resize event management void SetResizeRect(nsRect& aRect);