X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4588fd1df27e5d1557796825b47e37627e3de7e..48f625bc2ce81132a2a8c2d7c524a03f1b7196e5:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 4d10afdafd..57aa52ecd5 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "window.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -2159,12 +2155,10 @@ void wxUniversalRepaintProc(Widget w, XtPointer WXUNUSED(c_data), XEvent *event, { case Expose: { - Display *display = (Display *) win -> GetXDisplay(); - win->AddUpdateRect(event->xexpose.x, event->xexpose.y, event->xexpose.width, event->xexpose.height); - if (event -> xexpose.count == 0) + if ( event->xexpose.count == 0 ) { win->DoPaint(); } @@ -2527,7 +2521,8 @@ wxWindow *wxWindowBase::GetCapture() // position. wxWindow* wxFindWindowAtPointer(wxPoint& pt) { - return wxFindWindowAtPoint(wxGetMousePosition()); + pt = wxGetMousePosition(); + return wxFindWindowAtPoint(pt); } // Get the current mouse position.