Don't set 0 client size in wxX11 neither

This also results in BadValue X11 error, so ensure that the size is
valid here too, just as we do in DoSetSize().
This commit is contained in:
Vadim Zeitlin
2019-11-06 15:05:47 +01:00
parent 8df84db842
commit 23f7614626

View File

@@ -950,6 +950,7 @@ void wxWindowX11::DoSetClientSize(int width, int height)
wxCHECK_RET( xwindow, wxT("invalid window") );
EnsureValidXWindowSize(width, height);
XResizeWindow( wxGlobalDisplay(), xwindow, width, height );
if (m_mainWindow != m_clientWindow)
@@ -965,6 +966,7 @@ void wxWindowX11::DoSetClientSize(int width, int height)
height -= border.y + border.height;
}
EnsureValidXWindowSize(width, height);
XResizeWindow( wxGlobalDisplay(), xwindow, width, height );
}
}