ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.14k stars 211 forks source link

Running weston in gamescope. mouse did not working. #1084

Open l12436 opened 10 months ago

l12436 commented 10 months ago

I have some software need to run by weston. due to gamescope wayland client feature is not working. It will be black screen. when I execute "gamescope weston" I found the mouse motion is not pass to weston, but the scroll is working.

Environment I am using "nomachine" that remote control a pc with running "gamescope weston"

Except Mouse should working

misyltoad commented 10 months ago

Mouse cursor stuff in the --expose-wayland stuff is not implemented currently. It's very barebones.

l12436 commented 10 months ago

OK, so it make sensors on wayland only is not working, but I run weston on X11 not through --expose-wayland. weston run in gamescope wayland through --expose-wayland is all black.

The cursor is working on local. Only not working when using nomachine remote. I am using this feature is not for gaming, for stretch some software that is not actually fit for my screen. there are a cursor on it

weston is a program could open a wayland screen on X11, although it also could run under wayland, but I mainly its X11 backend.

You can add extra argument for this usage if there is not possible to auto detect it. I only use this feature on certain software like waydroid.

l12436 commented 10 months ago

OK, It seems like the inside weston capture the mouse, and gamescope is not able to game mouse event ?

now a workaround is run another weston with xwayland and run gamescope in it, than execute weston I want. the outside weston seem able to send mouse to the inside weston.

l12436 commented 9 months ago

https://github.com/ValveSoftware/gamescope/pull/1098 This could solve my issue