From faea4da8ff46fb56477175d5f9ee7468afc279f5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 25 May 2020 18:02:14 +0200 Subject: [PATCH] Force enable live resizing in wxAUI for GTK 3 too Do for GTK 3 the same thing as was already done for macOS in 68030cae69 (Added wxAUI_MGR_LIVE_RESIZE flag for live sash sizing, the default on wxOSX, 2009-01-07) and for the same reasons: sash feedback is simply invisible with this port and so can't be used. --- interface/wx/aui/framemanager.h | 4 ++-- src/aui/framemanager.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/wx/aui/framemanager.h b/interface/wx/aui/framemanager.h index ab2352a149..14c05fe6d5 100644 --- a/interface/wx/aui/framemanager.h +++ b/interface/wx/aui/framemanager.h @@ -213,8 +213,8 @@ public: If this function returns true, ::wxAUI_MGR_LIVE_RESIZE flag is ignored and live resize is always used, whether it's specified or not. - Currently this is the case for wxOSX port, as live resizing is the only - implemented method there. + Currently this is the case for wxOSX and wxGTK3 ports, as live resizing + is the only implemented method there. @since 3.1.4 */ diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index db03fe45cf..dda8873922 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -772,9 +772,9 @@ unsigned int wxAuiManager::GetFlags() const return m_flags; } -// With Core Graphics on Mac, it's not possible to show sash feedback, +// With Core Graphics on Mac or GTK 3, it's not possible to show sash feedback, // so we'll always use live update instead. -#if defined(__WXMAC__) +#if defined(__WXMAC__) || defined(__WXGTK3__) #define wxUSE_AUI_LIVE_RESIZE_ALWAYS 1 #else #define wxUSE_AUI_LIVE_RESIZE_ALWAYS 0