From 5d2dd01e85c2a35875bf3978d7d8fc899fe3e69f Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sat, 22 Oct 2022 11:51:13 +0000 Subject: [PATCH] Call Layout() after DrawingPanel OnSize event When processing the `OnSize` event in the `GameArea` and calling the embedded `DrawingPanel` `OnSize` event, call `Layout()` afterwards. This seems to improve the resizing behavior of the EGL `wxGLCanvas` `DrawingPanel` on Wayland. Signed-off-by: Rafael Kitover --- src/wx/panel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index 6e8daf88..71e7308c 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -1381,6 +1381,7 @@ void GameArea::OnSize(wxSizeEvent& ev) // panel may resize if (panel) panel->OnSize(ev); + Layout(); ev.Skip(); }