]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/checkbox.cpp
react on mouse up, not mouse down
[wxWidgets.git] / src / motif / checkbox.cpp
index edd27d1c2b84566d9f998eff2e0236494911d519..144e2c47d129505a5b5cdc77dd9c637e87b9e183 100644 (file)
@@ -121,7 +121,7 @@ void wxCheckBox::ChangeBackgroundColour()
         XmNforeground, g_itemColors[wxFORE_INDEX].pixel,
         NULL);
 
-    int selectPixel = wxBLACK->AllocColour(wxGetDisplay());
+    int selectPixel = wxBLACK->AllocColour(XtDisplay((Widget)m_mainWidget));
 
     // Better to have the checkbox selection in black, or it's
     // hard to determine what state it is in.