mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
DroidDeck's gamescope runs two X servers (--xwayland-count 2): Steam's UI on :0 and games on STEAM_GAME_DISPLAY_0, which Steam passes to the tool as DISPLAY. launch.sh forced :0, so opening Steam's menu took X focus from the game; with no Wine desktop, Wine then deactivated it and DiRT Showdown left fullscreen and saved an 800x600 window. launch.sh now keeps Steam's DISPLAY (and GAMESCOPE_WAYLAND_DISPLAY) and logs it. gstag tags windows on that display; gamescope publishes GAMESCOPE_FOCUSED_APP and reads GAMESCOPECTRL_BASELAYER_APPID on its first server only, so gstag reads and writes those through a second connection to :0.