Set GAMESCOPE_WAYLAND_DISPLAY
This allows gamescope-specific Wayland clients to connect to the Wayland server, while preventing regular Wayland clients from doing so.
This commit is contained in:
parent
a05e5b0a39
commit
be735e9360
1 changed files with 2 additions and 0 deletions
|
@ -587,6 +587,8 @@ int wlserver_init(int argc, char **argv, bool bIsNested) {
|
||||||
|
|
||||||
wlr_log(WLR_INFO, "Running compositor on wayland display '%s'", wayland_display_name);
|
wlr_log(WLR_INFO, "Running compositor on wayland display '%s'", wayland_display_name);
|
||||||
|
|
||||||
|
setenv("GAMESCOPE_WAYLAND_DISPLAY", wayland_display_name, 1);
|
||||||
|
|
||||||
if (!wlr_backend_start( wlserver.wlr.multi_backend ))
|
if (!wlr_backend_start( wlserver.wlr.multi_backend ))
|
||||||
{
|
{
|
||||||
wlr_log(WLR_ERROR, "Failed to start backend");
|
wlr_log(WLR_ERROR, "Failed to start backend");
|
||||||
|
|
Loading…
Reference in a new issue