intercept mouse events even if they are not visible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20466
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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)