ValveSoftware / gamescope

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

Gamescope no longer respects SDL_VIDEODRIVER=x11 #1245

Open imavlr opened 7 months ago

imavlr commented 7 months ago

With the latest update of gamescope on Arch, I seemingly can no longer force gamescope to run the X11 client instead of the gamescope-wl client.

My motivation for doing so is that discord is unable to listen to keyboard hotkeys when Wayland windows are focused. Therefore, running gamescope in an Xwayland window lets all my games get around this issue, however, with the latest version of gamescope on Arch Linux, I can no longer do so by setting SDL_VIDEODRIVER=x11.

Has this been removed completely, or is there a new way to force it to run x11?

tornadus commented 7 months ago

Seems like the new way is unsetting the WAYLAND_DISPLAY variable. No need to set SDL_VIDEODRIVER anymore from what I can tell.

Example: env -u WAYLAND_DISPLAY gamescope -- %command%

misyltoad commented 7 months ago

It's not using SDL on the Wayland path anymore. Which would be why.

I'll probably add an explicit way to set the backend.

Flameopathic commented 2 months ago

Example: env -u WAYLAND_DISPLAY gamescope -- %command%

this causes my gamescope to crash, claiming (EE) failed to read Wayland events: Connection reset by peer Segmentation fault (core dumped)

DeedleFake commented 2 months ago

Do you have an Xwayland instance running, @Flameopathic, or are you running a pure Wayland setup?

Flameopathic commented 2 months ago

@DeedleFake I have Xwayland running

HanabishiRecca commented 2 months ago

Since 3.14.18 (#1321) there is a CLI option to set the backend. E.g. --backend sdl.