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:
parent
f8e9542004
commit
1edc232af1
|
@ -507,6 +507,7 @@ void EDA_BASE_FRAME::ThemeChanged()
|
||||||
|
|
||||||
void EDA_BASE_FRAME::OnSize( wxSizeEvent& aEvent )
|
void EDA_BASE_FRAME::OnSize( wxSizeEvent& aEvent )
|
||||||
{
|
{
|
||||||
|
#ifdef __WXMAC__
|
||||||
int currentDisplay = wxDisplay::GetFromWindow( this );
|
int currentDisplay = wxDisplay::GetFromWindow( this );
|
||||||
|
|
||||||
if( m_displayIndex >= 0 && currentDisplay != m_displayIndex )
|
if( m_displayIndex >= 0 && currentDisplay != m_displayIndex )
|
||||||
|
@ -516,6 +517,7 @@ void EDA_BASE_FRAME::OnSize( wxSizeEvent& aEvent )
|
||||||
m_displayIndex = currentDisplay;
|
m_displayIndex = currentDisplay;
|
||||||
ensureWindowIsOnScreen();
|
ensureWindowIsOnScreen();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
aEvent.Skip();
|
aEvent.Skip();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue