I’ve been having weird window sizing issues on Fedora, and I have just found that on Mint 20 (and all Ubuntu versions from 16.04-20.10), SetSizeHints() and SetMinSize() seem to be setting this via the client size (size ignoring window decorations). So when the window opens at what I’ve set the minimum size to be, it cannot be shrunk further.
However, on Fedora 32 and 31, this is setting the whole window size including window decoration. This means that the window opens at the right size, but can be shrunk because it’s also counting the window decoration.
The only difference I can see in wxPython versions is that 4.0.7 is being used on Mint 20, and 4.0.7.post2 is being used on Fedora 32. Is this a wxPython change or something else?
No, it will use Wayland natively. Do the differences go away if you use X11 on Fedora? Or, alternatively, try starting your application with GDK_BACKEND=x11 ./your_application.
I believe that Wayland uses client side decorations, so that probably explains the difference. I’m not sure whether wxWidgets is behaving correctly here, or whether this is expected behavior when running on Wayland. You may want to ask on the wxWidgets mailing lists or open a Trac ticket.