hmlendea/gfn-electron

[BUG] Mouse crashes into sides of screen on sway

sheepymeh opened this issue ยท 19 comments

Describe the bug

I am running gfn-electron in sway. The cursor of the system continues to move even when it is captured by gfn-electron. When I move my view far enough, the cursor crashes into the sides of the screen and I am unable to continue moving my view any further.

To Reproduce

  1. Open a game
  2. Pan to the left/right until you are unable to do so any further
  3. Press Esc and notice that the system cursor is on the edge of the screen

Screenshots

No response

Operating System

Arch Linux

Desktop Environment

sway 1.7

Display Server

Wayland

Installation method

AUR

Version

1.10.0

Is this a fresh install of the app or an update from a past version?

Fresh install

Did this issue appear right away upon installation/updating, or spontaneously?

Yes, right after installation

Additional context

This issue is not present when playing directly in the Chromium browser. I am using the --enable-features=UseOzonePlatform --ozone-platform=wayland flags to run gfn-electron and Chromium in Wayland directly.

I have similar problem on my system (fedora 37, KDE, Wayland) and latest flatpak version (update 23/05/03). Mouse crashes to edges and games are overall sluggish and unplayable. It may be related to fact, that I can no longer activate fullscreen with F11 (in Library - it solves some issues with escape key and mouse input), which i was used to in versions before.

EDIT: Downgrading flatpak (2023-03-25) helped as a workaround.

@pil-in-a I have the same issue on fedora 38 gnome wayland. What do you mean by downgrading flatpak?

@rby-blackruby ... I downgraded io.github.hmlendea.geforcenow-electron flatpak package to older version (2023-03-25 instead of 2023-05-03). Here is how I did it.

Is this still an issue for you in the latest version?

Fullscreen not working properly is still an issue in the lastest release (cannot manualy activate it via F11, mouse crashing to edge/going to second monitor). Performance seems to be lot better though - playable (still not as smooth as last working version).

Same issue, trying to play genshin impact with the --spoof-windows flag enabled, I have very limited range of movement. Seems like the mouse locking isn't working, and I understand that it may be difficult to do that on linux.

Yeah I've got the same issue since a month or so, have been using Chromium instead as well.

Same here. Fedora 38 GNOME Wayland running latest gfn as of writing.

Similar problem with Ubuntu 22.04 on Gnome42. Mouse seems to go over the edge and I can't rotate the characters anymore. Downgraded to the 5/3/23 package from flatpak and that version works just fine.

Same problem here, on Ubuntu 23.10, Wayland, app version 2.0.0 .

Also have this problem on KaOS with Wayland.

I was able to fix this bug, like others, by downgrading the package. This command should work for everyone: sudo flatpak update --commit=195a02e06f57c1fe201d5321bc75530e78eb153f6e04dc4092978a1fd2e84b5a io.github.hmlendea.geforcenow-electron

And you should see this:

flatpak info io.github.hmlendea.geforcenow-electron

GeForce NOW Electron - Unofficial GeForce NOW application written in Electron

          ID: io.github.hmlendea.geforcenow-electron
         Ref: app/io.github.hmlendea.geforcenow-electron/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.10.0
     License: GPL-3.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 227.9 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 195a02e06f57c1fe201d5321bc75530e78eb153f6e04dc4092978a1fd2e84b5a
      Parent: f6680dc1d42925d3fabab0088d8250bf4a809271912984ab2a2d8c3faf7c17e4
     Subject: Update runtime to 22.08 (4b30a22d)
        Date: 2023-03-25 14:26:33 +0000

The fix works on both Fedora 38 and 39 for me.

I discovered if you go to releases, download the AppImage and run it, the cursor issue is not a problem.

This issue still isn't fixed, is it going to be fixed?

I was able to fix this bug, like others, by downgrading the package. This command should work for everyone: sudo flatpak update --commit=195a02e06f57c1fe201d5321bc75530e78eb153f6e04dc4092978a1fd2e84b5a io.github.hmlendea.geforcenow-electron

And you should see this:

flatpak info io.github.hmlendea.geforcenow-electron

GeForce NOW Electron - Unofficial GeForce NOW application written in Electron

          ID: io.github.hmlendea.geforcenow-electron
         Ref: app/io.github.hmlendea.geforcenow-electron/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.10.0
     License: GPL-3.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 227.9 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 195a02e06f57c1fe201d5321bc75530e78eb153f6e04dc4092978a1fd2e84b5a
      Parent: f6680dc1d42925d3fabab0088d8250bf4a809271912984ab2a2d8c3faf7c17e4
     Subject: Update runtime to 22.08 (4b30a22d)
        Date: 2023-03-25 14:26:33 +0000

The fix works on both Fedora 38 and 39 for me.

Recently installed Debian 12 and this is no longer a possible fix as the version quoted is no longer found.

Seems like everything before the version 2.0.0 update has been removed!

ID: io.github.hmlendea.geforcenow-electron
Ref: app/io.github.hmlendea.geforcenow-electron/x86_64/stable
Arch: x86_64
Branch: stable
Collection: org.flathub.Stable
Download: 111.3 MB
Installed: 272.5 MB
Runtime: org.freedesktop.Platform/x86_64/23.08
Sdk: org.freedesktop.Sdk/x86_64/23.08

Commit: aa83ecbe154520416e0f8496d4beb81328c88444efa8fa51e07ef684572cf5a3
Parent: d41a1bf86bef70f0c8131cbf0041318de2726342770a74192cb9a670236ddbed
Subject: Update io.github.hmlendea.geforcenow-electron.metainfo.xml (5985e20d)
Date: 2024-04-11 03:47:39 +0000

History:

Commit: d41a1bf86bef70f0c8131cbf0041318de2726342770a74192cb9a670236ddbed
Subject: Update geforcenow-electron_2.0.0_linux.zip to 2.0.1 (63c64e55)
Date: 2023-12-05 12:55:52 +0000

Commit: 8c5e71e352e52c859bf3e3b302047634e414683c463666557df7aa309f86bfed
Subject: Update geforcenow-electron_1.13.0_linux.zip to 2.0.0 (b99fa5a7)
Date: 2023-10-11 15:21:19 +0000

Commit: 414a8a0394183d9f94b3ad422e963e02f998ec830186f72cd273ef44a7294e10
Subject: Migrate to FDO 23.08 and add /run/udev:ro permission to manifest. (fb47af38)
Date: 2023-10-02 06:22:36 +0000

This issue is still not fixed, having the same problem with the latest version on my fresh KDE Neon with Wayland.

Fedora 40 here with latest Electron version, fully reproducible as noted.

ETA: launched 2.0.0 appimage and mouse stays within the game no problem.

Thanks for that, I'll give it a go with AppImage.