]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobox.cpp
Added support for delayed deactivation of windows (for MDI)
[wxWidgets.git] / src / motif / radiobox.cpp
index 6073ff07c36b54a1b890eb4bb75dfc42277fbd83..9bf78c04a424d2fb1ebbffe26d6a72a482e51004 100644 (file)
@@ -377,7 +377,7 @@ void wxRadioBox::ChangeBackgroundColour()
 {
     wxWindow::ChangeBackgroundColour();
 
-    int selectPixel = wxBLACK->AllocColour(wxGetDisplay());
+    int selectPixel = wxBLACK->AllocColour(XtDisplay((Widget)m_mainWidget));
 
     int i;
     for (i = 0; i < m_noItems; i++)