Fix issues on Linux/Unity (dialogs not always raised)
This commit is contained in:
parent
d2ebf688f9
commit
ac1deb32ee
|
@ -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 ];
|
||||
|
|
|
@ -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 );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue