qt: Improve user experience on Steam Deck and window managers #2103
+250
−281
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This aims to fix issues with the Qt interface on (mostly Linux) desktops that hide the app's titlebar and buttons, such as the Steam Deck's Gaming Mode, which uses Gamescope (see #2086), and the aforementioned window managers. They range from minor quirks to issues that make it outright impossible to perform some actions solely using the GUI, and some examples are:
Screencast_20250108_134905.mp4
The latter causes weird behavior outside of those desktop interfaces, as when maximizing the Settings window on any desktop environment the text box resizing mechanism does not respect the actual window size, which leads to this:
I'll leave it as a draft for now because I want more input from people using said desktops and other operating systems than Linux, since there might be something I missed or that needs to be changed.