From 62984f40878879222bd772163326ff4be4229d47 Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Sun, 1 Jun 2025 00:52:41 +0100 Subject: [PATCH] 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. --- src/gui/input/InputAPIAddWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/input/InputAPIAddWindow.cpp b/src/gui/input/InputAPIAddWindow.cpp index 688ee14e..6bfb589b 100644 --- a/src/gui/input/InputAPIAddWindow.cpp +++ b/src/gui/input/InputAPIAddWindow.cpp @@ -23,7 +23,7 @@ using wxControllerData = wxCustomData; InputAPIAddWindow::InputAPIAddWindow(wxWindow* parent, const wxPoint& position, const std::vector& 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);