if ( !w )
return FALSE;
+ // if the widget is not unmanaged, it still intercepts
+ // mouse events, even if it is not mapped (and hence invisible)
if ( domap )
+ {
+ XtManageChild(w);
XtMapWidget(w);
+ }
else
+ {
XtUnmapWidget(w);
+ XtUnmanageChild(w);
+ }
// Rationale: a lot of common operations (including but not
// limited to moving, resizing and appending items to a listbox)
// check for a double click
//
- long dclickTime = XtGetMultiClickTime(wxGlobalDisplay());
+ long dclickTime = XtGetMultiClickTime(xevent->xany.display);
long ts = wxevent.GetTimestamp();
int buttonLast = win->GetLastClickedButton();
// Get the current mouse position.
wxPoint wxGetMousePosition()
{
- Display *display = (Display*) wxGetDisplay();
+ Display *display = wxGlobalDisplay();
Window rootWindow = RootWindowOfScreen (DefaultScreenOfDisplay(display));
Window rootReturn, childReturn;
int rootX, rootY, winX, winY;