itchio / itch

🎮 The best way to play your itch.io games
https://itch.io/app
MIT License
2.38k stars 210 forks source link

No minimum window size on Linux #3089

Open heldderarbeit opened 1 month ago

heldderarbeit commented 1 month ago

At least on KDE Plasma 6.2 and Gnome 47.0.1 (both Wayland and XOrg are affected) currently it's possible to resize the application into oblivion. Making it impossible to bring it back to a sane window size anymore, even after restarting the program (I assume that's because the proportions are written into config.json): [{"main_window_bounds": {"x":1584, "y": 196, "width":1, "height":12}}]

I think it would be good to have a minimum value set for width and height, so that the window control buttons always stay visible and the window cannot be resized into the void.

Tested on itch.io 26.1.9 downloaded from itch.io/app.

Screencast From 2024-10-12 20-00-47.webm Peek 2024-10-12 19-55.webm