ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.19k stars 214 forks source link

virtual marble mouse scroll wheel configured with sway no longer works in gamescope sessions #1295

Open kevenwyld opened 6 months ago

kevenwyld commented 6 months ago

Bear with me, this is a bit of a niche use case but does appear to be an actual bug somewhere...

Up until recently everything was fine however as of about 2-3 weeks ago one of my mice won't scroll in gamescope sessions. Everything else works though, even the games in question if I don't use gamescope.

I have configured my Logitech Marble Mouse to have a virtual scroll wheel when holding down the "down" or "back" button. This is done with libinput configuration in sway as follows (per the wiki):

input "1133:50184:Logitech_USB_Trackball" {
    scroll_method on_button_down
}

This works flawlessly in every application I've ever used, and up until recently it worked fine in gamescope too. Now scrolling simply does nothing. The rest of the mouse, and the back/forward buttons, work just fine. It's only scrolling which is an issue. Other mice with normal/default wheels scroll fine in gamescope.

I tried running xev inside a gamescope session as a simple test but as you can imagine it simply doesn't receive input from the marble mouse when scrolling, so there are no meaningful logs there. It does receive input from other mice when scrolling (button 5 and 4). It does provide an easy way to reproduce the problem though, you don't even need steam or a game.

xev when run outside of a gamescope session receives button 5 and 4 from both the marble mouse and other mice just fine.

I've tried both the stable version from arch (3.14.3) and building from master branch, there is no difference.

I will continue to try to debug, as I'm sure this is very low priority for everyone. There can't be that many people in the world who use sway+gamescope+marblemouse . I'm mostly posting here for visibility in case there happens to be even one other user of this combination of devices....

misyltoad commented 6 months ago

Probably worth checking if the input thread in wayland_backend is getting any scroll info at all.

kevenwyld commented 6 months ago

@Joshua-Ashton sorry I'm afraid I'm not sure where to start with that. Could you point me in the right direction? I did try --debug-events (probably not what you are talking about) which seems to report various types of device input however it doesn't report any scroll input.

craigers521 commented 2 days ago

@kevenwyld you ever sort this out? I was having an issue with lutris where if I alt-tabbed or switched focus to a different app the game video would freeze. Turning on gamescope fixed that issue but now mouse scroll is no longer working. Works fine if I turn gamescope off but im a serial app switcher lol. I'm on bazzite gnome, using latest wine.