From e4bce8f8917235f1566d4a37e684e014fa51d774 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 24 Dec 2023 16:36:54 +0100 Subject: [PATCH] Simplify platform test when creating hint window Instead of checking for all the other platforms, just check for non-Mac as the code in this branch should work (and definitely should compile) in any port and it's just wxOSX which requires special handling here. This fixes the build under the other platforms (e.g. wxX11) broken by the changes of e8a6f3b732 (Use wxSYS_COLOUR_HOTLIGHT for hint background under Mac too, 2023-12-24). --- src/aui/framemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 528f8dcf3c..be5fc5e0b2 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -844,7 +844,7 @@ void wxAuiManager::UpdateHintWindowConfig() if ((m_flags & wxAUI_MGR_TRANSPARENT_HINT) && can_do_transparent) { // Make a window to use for a transparent hint - #if defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXQT__) + #ifndef __WXMAC__ m_hintWnd = new wxFrame(m_frame, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(1,1), wxFRAME_TOOL_WINDOW | @@ -854,7 +854,7 @@ void wxAuiManager::UpdateHintWindowConfig() // We can set the background of the frame itself directly. auto bgWnd = m_hintWnd; - #elif defined(__WXMAC__) + #else // Mac // Using a miniframe with float and tool styles keeps the parent // frame activated and highlighted as such... m_hintWnd = new wxMiniFrame(m_frame, wxID_ANY, wxEmptyString,