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 <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2022-10-22 11:51:13 +00:00
parent 00344ca8f1
commit 5d2dd01e85
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 1 additions and 0 deletions

View File

@ -1381,6 +1381,7 @@ void GameArea::OnSize(wxSizeEvent& ev)
// panel may resize // panel may resize
if (panel) if (panel)
panel->OnSize(ev); panel->OnSize(ev);
Layout();
ev.Skip(); ev.Skip();
} }