[Problem feedback] 我的Steam无法拖动窗口,一拖动窗口就假死,临时解决方案
Tofloor
poster avatar
alexli
deepin
2 hours ago
Author

我的Steam无法拖动窗口,一拖动窗口就假死,,必须按启动键,才能切换其他窗口。主要原因是steam是自己绘制的标题栏,在deepin有问题。强制显示出系统的标题栏,就可以拖动了,如下。

wechat_2026-05-20_130334_395.png

解决方案就是在启动的时候,监控steam,强制出系统标题栏。我把启动文件发出来。

备份文件

  • steam.desktop

    • 原位置:/home/alex/.local/share/applications/steam.desktop
    • 作用:用户级 Steam 桌面启动项。
    • 当前启动入口:Exec=/home/alex/.local/bin/steam-fixed %U
  • steam-fixed

    • 原位置:/home/alex/.local/bin/steam-fixed
    • 作用:Steam 包装启动脚本。
    • 启动时会先运行 steam-watcher.sh,然后再启动 /usr/bin/steam -compat-force-slr off "$@"
    • Steam 退出后,会自动清理后台 watcher 进程。
  • steam-watcher.sh

    • 原位置:/home/alex/.local/bin/steam-watcher.sh
    • 作用:监视 Steam / steamwebhelper 窗口,并尝试强制 KWin 显示系统标题栏。
    • 主要依赖:xdotoolxproplogger

当前启动链路

从应用菜单或桌面启动 Steam 时:

~/.local/share/applications/steam.desktop
  -> /home/alex/.local/bin/steam-fixed
    -> /home/alex/.local/bin/steam-watcher.sh
    -> /usr/bin/steam -compat-force-slr off

注意:系统里也可能有 /usr/share/applications/steam.desktop,但当前用户级的
~/.local/share/applications/steam.desktop 会优先生效。

恢复方法

如果以后需要恢复这套启动方式,可以执行:

mkdir -p /home/alex/.local/bin /home/alex/.local/share/applications
cp -a /home/alex/Documents/steam/steam-fixed /home/alex/.local/bin/steam-fixed
cp -a /home/alex/Documents/steam/steam-watcher.sh /home/alex/.local/bin/steam-watcher.sh
cp -a /home/alex/Documents/steam/steam.desktop /home/alex/.local/share/applications/steam.desktop
chmod 775 /home/alex/.local/bin/steam-fixed /home/alex/.local/bin/steam-watcher.sh
chmod 755 /home/alex/.local/share/applications/steam.desktop
update-desktop-database /home/alex/.local/share/applications 2>/dev/null || true

恢复后可以检查启动入口:

grep '^Exec=' /home/alex/.local/share/applications/steam.desktop

应该能看到主入口和各个 Steam 动作都指向:

/home/alex/.local/bin/steam-fixed

简单验证

启动 Steam 后可以查看日志:

journalctl --user -t steam-fixed -t steam-watcher --since "10 minutes ago"

如果看到 Steam 启动中Steam 窗口监视器已启动 或窗口修复日志,说明脚本已经被调用。

steam.zip

Reply Favorite View the author
All Replies
avatar
alexli
deepin
2 hours ago
#1

如果你不会引起这个启动脚本,你就下载压缩包里文件,让AI 帮你弄好。

Reply View the author