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

[BUG] Mouse crashes into sides of screen on sway #174

Open
sheepymeh opened this issue Nov 5, 2022 · 19 comments
Open

[BUG] Mouse crashes into sides of screen on sway #174

sheepymeh opened this issue Nov 5, 2022 · 19 comments
Assignees
Labels
bug Something isn't working

Comments

@sheepymeh
Copy link

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.

@sheepymeh sheepymeh added the bug Something isn't working label Nov 5, 2022
@pil-in-a
Copy link

pil-in-a commented May 14, 2023

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.

@rby-blackruby
Copy link

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

@pil-in-a
Copy link

@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.

@hmlendea
Copy link
Owner

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

@pil-in-a
Copy link

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).

@alany08
Copy link

alany08 commented Jul 18, 2023

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.

@Victor239
Copy link

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

@benjamin051000
Copy link

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

@P0cket-Sevens
Copy link

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.

@Soupolait
Copy link

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

@jobukkit
Copy link

Also have this problem on KaOS with Wayland.

@benjamin051000
Copy link

benjamin051000 commented Nov 11, 2023

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.

@P0cket-Sevens
Copy link

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

@dzmtrzz
Copy link

dzmtrzz commented Feb 22, 2024

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

@ghost
Copy link

ghost commented May 18, 2024

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

@MrHeroj21
Copy link

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

@swade2569
Copy link

swade2569 commented Jun 22, 2024

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.

@ghost
Copy link

ghost commented Jun 30, 2024

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

@ManuelEscala1998
Copy link

ManuelEscala1998 commented Aug 4, 2024

I just found a simple solution for this. The AppImage is good, but I don't like to sign in every single time because I need to do the 2FA this is the other alternative to install the 1.10 manually because the commit is no longer available. You just need to download the tar.gz file and install it, then you're good to go https://aur.archlinux.org/cgit/aur.git/commit/?h=geforcenow-electron&id=37c3cb1f787253529ae93eba52fd717fe8b9ada0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests