void wxTopLevelWindowMotif::PreDestroy()
{
- wxTopLevelWindows.DeleteObject(this);
-
if ( (GetWindowStyleFlag() & wxDIALOG_MODAL) != wxDIALOG_MODAL )
wxModelessWindows.DeleteObject(this);
wxTopLevelWindowMotif::~wxTopLevelWindowMotif()
{
SetMainWidget( (WXWidget)0 );
-
- // If this is the last top-level window, exit.
- if (wxTheApp && (wxTopLevelWindows.GetCount() == 0))
- {
- wxTheApp->SetTopWindow(NULL);
-
- if (wxTheApp->GetExitOnFrameDelete())
- {
- wxTheApp->ExitMainLoop();
- }
- }
}
void wxTopLevelWindowMotif::Init()
XtSetValues( (Widget)GetShellWidget(), args, count );
}
+bool wxTopLevelWindowMotif::SetShape( const wxRegion& region )
+{
+ return wxDoSetShape( (Display*)GetXDisplay(),
+ XtWindow( (Widget)GetShellWidget() ),
+ region );
+}
+
// ---------------------------------------------------------------------------
// Callback definition
// ---------------------------------------------------------------------------