Fix issues on Linux/Unity (dialogs not always raised)

This commit is contained in:
jean-pierre charras 2015-07-15 10:18:48 +02:00
parent d2ebf688f9
commit ac1deb32ee
2 changed files with 4 additions and 4 deletions

View File

@ -111,10 +111,8 @@ bool DIALOG_SHIM::Show( bool show )
// If showing, use previous position and size.
if( show )
{
wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
ret = wxDialog::Show( show );
#ifdef __WXMAC__
wxDialog::Raise(); // More wxWindows brokenness on OS X
#endif
// classname is key, returns a zeroed out default EDA_RECT if none existed before.
EDA_RECT r = class_map[ hash_key ];

View File

@ -280,8 +280,10 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
UseGalCanvas( parentFrame->IsGalCanvasActive() );
if( !IsModal() ) // For modal mode, calling ShowModal() will show this frame
{
Raise(); // On some window managers, this is needed
Show( true );
}
}