UI: wxCAPTION flag on input API dialog to fix kwin

The IP and port input boxes are not shown when the DSUController API is
first selected when using wayland with kwin.

Setting the dialog as wxCAPTION causes kwin to add decorations to the
window which for whatever reason causes the toplevel to resize
correctly.

This may be a bug in wxWidgets or kwin.
This commit is contained in:
Colin Kinloch 2025-06-01 00:52:41 +01:00
parent 6df3e1742e
commit 62984f4087

View file

@ -23,7 +23,7 @@ using wxControllerData = wxCustomData<ControllerPtr>;
InputAPIAddWindow::InputAPIAddWindow(wxWindow* parent, const wxPoint& position,
const std::vector<ControllerPtr>& controllers)
: wxDialog(parent, wxID_ANY, "Add input API", position, wxDefaultSize, 0), m_controllers(controllers)
: wxDialog(parent, wxID_ANY, "Add input API", position, wxDefaultSize, wxCAPTION), m_controllers(controllers)
{
this->SetSizeHints(wxDefaultSize, wxDefaultSize);