Have you tried using Gamescope?
Hyprland Desktop Environment
An (unnoficial) Hyprland Community in the new Land!
You can share and help each other when using Hyprland here.. :)
Resources:
After several hours of trial and error, the problem was indeed corrected (almost completely) with Gamescope, although it is not perfect.
I needed to spend a lot of time reading the Archwiki and several Reddit posts, and basically, the problem was fixed: I needed to install the vulkan-radeon
and lib32-vulkan-radeon
packages (which seems weird to me, because in theory my distro should install those packages for me when installing mesa), plus Gamescope.
Then, I need to add all these settings to Borderlands 2 on Steam: gamescope -f -W 1920 -H 1080 -r 60 --force-grab-cursor --adaptive-sync --expose-wayland -- %command% -nostartupmovies -nolauncher
Each one has a function, but --force-grab-cursor
is strictly necessary in this game because otherwise the mouse will move erratically all of a sudden, and when I said that “It is almost completely corrected” is that when using that parameter the mouse is stuck in the center of the screen and you need to move from virtual desktop and return to the game, otherwise you will not be able to move the mouse, and if you do not add that parameter directly you will not be able to use the mouse at all.
I hope this has been helpful for future people reading this!
Thank you for documenting this!