Do not realize the top level shell that acts as a parent
for top level windows. Add a realized child for the shell for functions requiring it (clipboard at the moment). Use XtPopup to show top level widgets, as per Motif guidelines. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -430,8 +430,8 @@ void wxFrame::DoSetSize(int x, int y, int width, int height, int WXUNUSED(sizeFl
|
||||
|
||||
bool wxFrame::Show( bool show )
|
||||
{
|
||||
if( !wxTopLevelWindowMotif::Show( show ) )
|
||||
return FALSE;
|
||||
if( !wxWindowBase::Show( show ) )
|
||||
return false;
|
||||
|
||||
m_isShown = show;
|
||||
|
||||
@@ -442,15 +442,14 @@ bool wxFrame::Show( bool show )
|
||||
SetVisibleStatus(show);
|
||||
if (show)
|
||||
{
|
||||
XtMapWidget (shell);
|
||||
XRaiseWindow (XtDisplay(shell), XtWindow(shell));
|
||||
XtPopup(shell, XtGrabNone);
|
||||
}
|
||||
else
|
||||
{
|
||||
XtUnmapWidget(shell);
|
||||
XtPopdown(shell);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFrame::SetTitle(const wxString& title)
|
||||
|
||||
Reference in New Issue
Block a user