diff --git a/include/wx/motif/window.h b/include/wx/motif/window.h index 5654303515..9ce318d42b 100644 --- a/include/wx/motif/window.h +++ b/include/wx/motif/window.h @@ -97,7 +97,9 @@ public: // Accept files for dragging virtual void DragAcceptFiles(bool accept); - + + virtual wxPoint GetClientAreaOrigin() const; + // Get the unique identifier of a window virtual WXWidget GetHandle() const { return GetMainWidget(); } @@ -291,7 +293,7 @@ protected: virtual bool DoPopupMenu(wxMenu *menu, int x, int y); virtual void DoCaptureMouse(); virtual void DoReleaseMouse(); - + #if wxUSE_TOOLTIPS virtual void DoSetToolTip( wxToolTip *tip ); #endif // wxUSE_TOOLTIPS diff --git a/src/motif/window.cpp b/src/motif/window.cpp index feda98f8ec..aa4453bd4f 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1372,6 +1372,13 @@ void wxWindow::DoSetClientSize(int width, int height) XtVaSetValues(widget, XmNheight, height, NULL); } +// For implementation purposes - sometimes decorations make the client area +// smaller +wxPoint wxWindow::GetClientAreaOrigin() const +{ + return wxPoint(0, 0); +} + void wxWindow::DoMoveWindowIntr(int xx, int yy, int w, int h, int flags) {