Make wxAUI and wxSplitterWindow work properly with wxOverlay under wxGTK2

This Workaround is needed because the DC used to draw on the wxOverlay clips
children by default under wxGTK2. This means that the sash will always appear
behind the sub-windows. making wxOverlay worthless under this platforms.

Notice that calling gdk_gc_set_subwindow() unconditionally in Destroy() is cheap
when DontClipSubWindows() has never been called.
This commit is contained in:
ali kettab 2024-01-25 03:17:45 +01:00 committed by AliKet
parent a38175885c
commit 7491ac5b7a
4 changed files with 52 additions and 16 deletions

View file

@ -122,6 +122,7 @@ public:
PangoFontDescription *m_fontdesc;
void SetUpDC( bool ismem = false );
void DontClipSubWindows();
void Destroy();
virtual void ComputeScaleAndOrigin() override;