Fix for the fact that unmapped but managed widgets

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
This commit is contained in:
Mattia Barbon
2003-05-04 12:19:57 +00:00
parent 44f5b99574
commit 28169f14ec

View File

@@ -172,10 +172,18 @@ bool wxWindow::MapOrUnmap(WXWidget widget, bool domap)
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)