Compiler: Unsure how to determine, but official package from Fedora 32 (Python3 reports compiler as GCC 10.2.1 20200723, so likely the same)
wx version: 3.0.4
wxPython version: 4.0.7
As I first reported here: https://discuss.wxpython.org/t/setminsi ... nces/34914, I have noticed differences in the way SetMinSize() and SetSizeHints() work depending on whether the X11 or Wayland backend is used.
It seems that SetMineSize() and SetSizeHints() are ignoring the window decoration in the minimum size calculation on X11, but taking it into account on Wayland. The same does not seem to be the case for GetClientSize(), so I'm having trouble setting a minimum window size that is consistent across Linux distros that default to X11 (eg Ubuntu) and Wayland (eg Fedora). On Fedora, the windows can be shrunk a bit more, which I think is because:
- Get/SetClientSize() work the same on both platforms and ignore the window decoration in the size calculation.
- SetMinSize() and SetSizeHints() are taking the window decoration into account, but only on Wayland (everything is consistent on X11 AFAICT).