Going Medieval (1029780)

未关闭
#10,385 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
cpp, linux
领域
desktop

调研方向

This is a deep Wine/X11 input investigation, not a scoped edit: the payload names no file or test, only the reproduction and the xinput workaround. Start by reproducing the Steam↔game focus round trip and capturing the WINEDEBUG=+rawinput trace and xinput list-props snapshots broken and after the slave-pointer cycle, then compare what Wine sees at the focus transition. Done means pan/rotate survive focus changes without manually re-enumerating xwayland-relative-pointer. Expect to touch Wine's X11 raw-input device handling, so treat it as long-running.

由索引模型根据 Issue 内容生成。

描述

Game compatibility - Unofficial

Compatibility Report

  • Name: Going Medieval
  • Steam AppID of the game: 1029780

System Information

  • GPU: AMD Radeon RX 7800 XT (NAVI32, RADV/ACO)
  • Video driver version: Mesa 26.1.6 (radv), kernel DRM 3.64
  • Kernel version: 7.2.15-76070215-generic (Pop!_OS 24.04 LTS)
  • Link to full system information report as Gist: https://gist.github.com/tsavercool/5c68718cd71edd7c8b950a99431d1339
  • Proton version: Proton Experimental experimental-11.0-20261112-x86_64; also reproduced on Proton 9.0 (Beta)

Additional environment notes:

  • Session: COSMIC on Wayland, game runs as an X11 client under Xwayland 24.1.13 (DISPLAY=:1)
  • Compositor: cosmic-comp 0.1179450437724.04f2beba6 (updated 2026-11-15 10:01; previous build 0.1179431057724.0466524a0)
  • Display: 7680x1440 desktop, 5120x1440 @ 120 Hz primary; game windowed at 1920x1080, D3D11 via DXVK
  • Steam client updated 2026-11-15 15:32 (first client update since 2026-10-25)
  • Steam Overlay disabled for this app (OverlayAppEnable "0"); Steam Input config disabled

I confirm:

  • [X ] that I haven't found an existing compatibility report for this game.
  • [ X] that I have checked whether there are updates for my system available.

steam-1029780.log

Symptoms

Switching focus between the Steam client window and the game window (both X11 under Xwayland) leaves the game unable to use mouse-drag camera controls. Middle-mouse pan and right-mouse rotate move the camera only a few pixels ("invisible wall"), and the camera snaps back to its original orientation when the button is released, as if the drag were cancelled.

What still works in the broken state: cursor movement and absolute position, clicks, UI hover, scroll zoom, and all keyboard input (WASD, hotkeys). Only mouse deltas are dead.

Notes:

  • The game can also start already broken, without any in-session focus change after launch.
  • Relaunching the game does not reliably clear it; a reboot does.
  • No crash, and no related error in Player.log.
  • To support tech - I am more reporting this for fear that it could impact future Linux compatibility.

What was ruled out:

  • Steam Overlay disabled for the app — still reproduces
  • steam -cef-disable-gpu — still reproduces
  • Proton version/prefix: reproduces on Proton Experimental 11.0-20261112 and on Proton 9.0 (Beta) with a freshly created prefix
  • Hardware, remappers, OBS hooks, Steam Input, monitor layout/scaling, window mode, in-game settings

Evidence collected:

  • xinput test-xi2 --root during a broken drag shows a healthy XInput2 stream (1307 RawMotion events + 26 button events over one drag), so events reach the X server/Xwayland correctly; Wine is not converting them into game deltas.
  • X11 input focus is correctly on the game window (XGetInputFocus returns the game window, revert=2).
  • Cycling the XInput slave pointer devices (xwayland-pointer:64, xwayland-relative-pointer:64) with xinput disable/enable while the game is running instantly restores pan/rotate — i.e. forcing Wine to re-enumerate input devices clears the fault. The master Virtual core pointer cannot be cycled (BadAccess, XInput minor 57).
  • Since an XInput hierarchy change is also what a reboot performs, this points to Wine's X11 raw-input device state going stale after focus transitions.

Workaround (run while the game is open):

#!/bin/sh
export DISPLAY="${DISPLAY:-:1}"
for id in $(xinput list | sed -n 's/.*xwayland-\(relative-\)\{0,1\}pointer:[0-9]*.*id=\([0-9][0-9]*\).*/\2/p'); do
    xinput disable "$id"; sleep 0.6; xinput enable "$id"; sleep 0.6
done

Reproduction

  1. Launch Going Medieval from Steam on a Wayland session (COSMIC), windowed.
  2. Confirm middle-mouse pan and right-mouse rotate work.
  3. Click the Steam client window (library or chat pane).
  4. Click back into the game window.
  5. Middle-drag to pan, right-drag to rotate — motion is effectively zero and the camera snaps back on release.
  6. Run the workaround above — pan/rotate work again immediately; repeat step 3–4 to break it again.

Related observation: in some sessions the same break occurs after switching focus to a Wayland-native application instead of Steam, and in those sessions a Steam↔game round trip cures it, so the trigger is a focus transition rather than the Steam client specifically.

Attachments available on request: $HOME/steam-1029780.log from a PROTON_LOG=1 launch, xinput list / xinput list-props captured broken and after the workaround, and a WINEDEBUG=+rawinput trace with the focus transition and device cycle marked.

主要语言
C++
星标
33.4k
派生
1.8k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/Proton 的其他 Issue

查看 ValveSoftware/Proton 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。