Only run window position correction on wxMac

Other platforms seem to handle this properly already, and
fighting against size changes is not desirable
This commit is contained in:
Jon Evans 2021-06-18 12:47:10 -04:00
parent f8e9542004
commit 1edc232af1
1 changed files with 2 additions and 0 deletions

View File

@ -507,6 +507,7 @@ void EDA_BASE_FRAME::ThemeChanged()
void EDA_BASE_FRAME::OnSize( wxSizeEvent& aEvent )
{
#ifdef __WXMAC__
int currentDisplay = wxDisplay::GetFromWindow( this );
if( m_displayIndex >= 0 && currentDisplay != m_displayIndex )
@ -516,6 +517,7 @@ void EDA_BASE_FRAME::OnSize( wxSizeEvent& aEvent )
m_displayIndex = currentDisplay;
ensureWindowIsOnScreen();
}
#endif
aEvent.Skip();
}