ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.04k stars 198 forks source link

Gamescope no longer respects SDL_VIDEODRIVER=x11 #1245

Open imavlr opened 5 months ago

imavlr commented 5 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 5 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 5 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 6 days 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 5 days ago

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

Flameopathic commented 5 days ago

@DeedleFake I have Xwayland running

HanabishiRecca commented 4 days ago

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