From 1edc232af1a27fdc4dcdde4cb16e4089d0758714 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 18 Jun 2021 12:47:10 -0400 Subject: [PATCH] Only run window position correction on wxMac Other platforms seem to handle this properly already, and fighting against size changes is not desirable --- common/eda_base_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 3cd30bb1e2..f370c1633f 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -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(); }