IssueRaiser

Add Wayland support to the Steam overlay

#### Your system information * Steam client version (build number or date): Jul 20 2021, at 22:25:57 * Distribution (e.g. Ubuntu): Fedora 34 * Opted into Steam client beta?: No * Have you checked for system updates?: Yes #### Please describe your issue in as much detail as possible: The Steam overlay currently depends on GLX and X WSI for OpenGL and Vulkan respectively. As a result, when running a Wayland-native application the overlay will not appear. For OpenGL, gameoverlayrenderer.so overrides glX* but not egl*. For Vulkan, steamoverlayvulkanlayer.so only overrides the functions for VK_KHR_xcb_surface and VK_KHR_xlib_surface, not VK_KHR_wayland_surface. This will take time to write (mostly for input handling I imagine) so a workaround would be for Steam to set `SDL_VIDEODRIVER` to `x11` if it's unset, being sure to only do this for native applications. #### Steps for reproducing this issue: 1. Take any game with a recent SDL version (my go-to is the public Steam beta for FEZ) 2. Set `SDL_VIDEODRIVER=wayland %command% /gldevice:XXX` as a launch option, where `XXX` can be `OpenGL` or `Vulkan` 3. Observe no overlay

Posted by flibitijibibo on Aug 27, 2021, 4:36 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

support (Other)

Add Wayland support to the Steam overlay

flibitijibiboAug 27, 2021, 4:36 AM

#### Your system information * Steam client version (build number or date): Jul 20 2021, at 22:25:57 * Distribution (e.g. Ubuntu): Fedora 34 * Opted into Steam client beta?: No * Have you checked for system updates?: Yes #### Please describe your issue in as much detail as possible: The Steam overlay currently depends on GLX and X WSI for OpenGL and Vulkan respectively. As a result, when running a Wayland-native application the overlay will not appear. For OpenGL, gameoverlayrenderer.so overrides glX* but not egl*. For Vulkan, steamoverlayvulkanlayer.so only overrides the functions for VK_KHR_xcb_surface and VK_KHR_xlib_surface, not VK_KHR_wayland_surface. This will take time to write (mostly for input handling I imagine) so a workaround would be for Steam to set `SDL_VIDEODRIVER` to `x11` if it's unset, being sure to only do this for native applications. #### Steps for reproducing this issue: 1. Take any game with a recent SDL version (my go-to is the public Steam beta for FEZ) 2. Set `SDL_VIDEODRIVER=wayland %command% /gldevice:XXX` as a launch option, where `XXX` can be `OpenGL` or `Vulkan` 3. Observe no overlay

Comments (0)

No comments yet. Start the discussion.

Comment on this issue