pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
492 stars 94 forks source link

Strange mouse/cursor behaviour in fullscreen apps #484

Open Tipcat-98 opened 6 months ago

Tipcat-98 commented 6 months ago

This started around the time when #448 and related commits were added.

In one game, V Rising. The cursor is offset from it's actionable position. As seen in the screenshot the option box is highlighted when the cursor is moderately to the left of it. This only happens in "Exclusive Fullscreen" mode, where in "Windowed" it works fine.

In another game, World of Warcraft. The cursor position matches where it actually is but you cannot move it to the very right of the screen. As seen in the screenshot, I cannot move it further to the right. This only happens in "Fullscreen (window)" mode, in "Windowed" mode it is fine.

I have two 1920x1080 monitors and I'm on Nvidia.

System Info: Cosmic: Updated to latest git as of today OS: Pop!_OS 22.04 LTS x86_64 Kernel: 6.8.0-76060800daily20240311-g DE: GNOME 42.5 CPU: Intel i7-6700 (8) @ 4.000GHz GPU: NVIDIA GeForce RTX 2060 Rev. A GPU Driver: 550.67 Memory: 32024MiB

Tipcat-98 commented 6 months ago

I can't really confirm if this only happens with xwayland apps.

Sidenote (might be related, not sure): I tried native wayland terraria and it does exhibit the same instability with nvidia as my other issue - #419.

I'll rename to say fullscreen apps.

Tipcat-98 commented 5 months ago

screenshot-2024-06-11-15-28-41

Adding proper embeds instead of discord links

Tipcat-98 commented 3 months ago

This seems to have worsened as of late. With the Nvidia legacy code path fix you can now get in-game without crashing but in most xwayland games you can't click anything on the screen, even if you start the game as windowed.

LiamillionSS commented 2 months ago

The game I noticed this take place in Genshin Impact running the hoyoplay launcher as a non-steam game under proton. Pre nvidia 560 driver release, clicks would not register at all meaning you would not be able to start the game, but now with the 560 driver update clicking now works, but the click takes place 10 cms to the right of where the cursor icon appears. This means the left side of the screen is inaccessible.

(1 indicates the position of the "physical" cursor icon, 2 indicates where the game thinks the cursor is and where clicks register) image