Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse cursor hidden when running fullscreen on Wayland #284

Open
blast007 opened this issue Jun 2, 2021 · 3 comments
Open

Mouse cursor hidden when running fullscreen on Wayland #284

blast007 opened this issue Jun 2, 2021 · 3 comments
Labels
Projects

Comments

@blast007
Copy link
Member

blast007 commented Jun 2, 2021

A user on the forums reported this and I was able to reproduce it as well. The user on the forum was running an AMD Radeon HD 5550 on Fedora 34. I replicated it using an AMD Radeon HD 5450 card running with Gnome on Wayland. I was using our Flatpak version of the game. Switching to Gnome on Xorg worked around the issue.

I plan to do some additional testing when I have some time. This may be a bug with the SDL2 version used with the Flatpak/Flathub runtimes.

@blast007 blast007 added the bug label Jun 2, 2021
@blast007
Copy link
Member Author

blast007 commented Jun 4, 2021

This seems to affect more than just BZFlag. Even Chromium (from Flathub) has the issue when fullscreened via the F11 key or via Gnome's fullscreen key.

https://www.reddit.com/r/openSUSE/comments/n82w5g/invisible_mouse_cursor_in_fullscreen_games_under/

@blast007
Copy link
Member Author

blast007 commented Jun 5, 2021

So here's the list of workarounds:

  1. Run Gnome on Xorg
  2. Run the game at a different resolution. Even switching to one resolution and back to native seems to fix it until you restart the client.
  3. Send /localset fakecursor 1 in chat, which will enable a software-rendered cursor. This setting will not persist in the configuration file, so you'll have to run this every time you run the game.
  4. Run SDL_VIDEODRIVER=wayland bzflag (or something similar for the Flatpak version), which tells SDL2 to use its Wayland driver instead of the X11 driver (which would use XWayland). This has some downsides though. At minimum, it seems you can't set the brightness (no gamma control) nor change the resolution, and the mouse cursor doesn't recenter when you respawn.

@blast007 blast007 added this to To do in BZFlag 2.6 via automation Jul 6, 2021
@blast007
Copy link
Member Author

There's a mention that this issue has been fixed:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1915#note_1257437

In the reddit thread I posted earlier, there's now a mention of a Gnome extension that "disables unredirect fullscreen windows" which also supposedly fixes (or works around) the cursor issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
BZFlag 2.6
  
To do
Status: Todo
Development

No branches or pull requests

1 participant