X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06c093e8b0892a6236c0783ce2c1b2866f46a24d..1c16e6df8e49ea69a4b123e5c4de96e97aa1dce6:/src/unix/utilsx11.cpp diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 8f2f8eb8ad..8d400126c6 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -765,9 +765,11 @@ KeySym wxCharCodeWXToX(int id) bool wxGetKeyState(wxKeyCode key) { #if defined(__WXX11__) - Display *pDisplay = wxApp::GetDisplay(); + Display *pDisplay = (Display*) 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