X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..cc4d5638c66a409e421420ed7110917755a66788:/src/motif/popupwin.cpp?ds=inline diff --git a/src/motif/popupwin.cpp b/src/motif/popupwin.cpp index 30aab7ea17..f4b1c6e9f2 100644 --- a/src/motif/popupwin.cpp +++ b/src/motif/popupwin.cpp @@ -4,7 +4,6 @@ // Author: Mattia barbon // Modified by: // Created: 28.08.03 -// RCS-ID: $Id$ // Copyright: (c) Mattia barbon // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -44,11 +43,19 @@ bool wxPopupWindow::Create( wxWindow *parent, int flags ) m_mainWidget = (WXWidget)popup; - SetSize( 100, 100 ); // for child creation to work + wxAddWindowToTable( (Widget) m_mainWidget, this ); + + DoSetSizeIntr( -1, -1, 100, 100, 0, true ); XtSetMappedWhenManaged( popup, False ); XtRealizeWidget( popup ); - + XtManageChild ( popup ); +/* + XtTranslations ptr; + XtOverrideTranslations (popup, + ptr = XtParseTranslationTable (": resize()")); + XtFree ((char *) ptr); +*/ return true; } @@ -59,7 +66,7 @@ bool wxPopupWindow::Show( bool show ) if( show ) { - XtPopup( (Widget)GetMainWidget(), XtGrabNone ); + XtPopup( (Widget)GetMainWidget(), XtGrabNonexclusive ); } else {