diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index 6fd4988224..f6b0179f11 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -634,6 +634,9 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt) return wxGenericFindWindowAtPoint(pt); } +// Now in utilsx11.cpp +#if 0 + // ---------------------------------------------------------------------------- // keycode translations // ---------------------------------------------------------------------------- @@ -876,6 +879,7 @@ KeySym wxCharCodeWXToX(int id) return keySym; } +#endif // ---------------------------------------------------------------------------- // Some colour manipulation routines diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 8f2f8eb8ad..1f62bea9e9 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -768,6 +768,8 @@ bool wxGetKeyState(wxKeyCode key) Display *pDisplay = wxApp::GetDisplay(); #elif defined(__WXGTK__) Display *pDisplay = GDK_DISPLAY(); +#elif defined(__WXMOTIF__) + Display *pDisplay = (Display*) (wxTheApp ? wxTheApp->GetInitialDisplay() : NULL); #else #error Add code to get the DISPLAY for this platform #endif