---
title: "判断应用是否运行在XWayland的方法"
description: "介绍两种直观的方法："
canonical_url: "https://yangqiuyi.com/blog/linux/pan-duan-ying-yong-shi-fou-yun-xing-zai-xwayland-de-fang-fa"
---

> Index of every page on this site: [llms.txt](https://yangqiuyi.com/llms.txt)

# 判断应用是否运行在XWayland的方法

介绍两种直观的方法：

## xprop

用包管理器安装 `xprop`, 然后在命令行里运行，这个时候把鼠标放到一个应用的窗口上，发现鼠标变成十字光标，说明这个窗口是 XWayland 渲染的。

## extramaus

和 xprop 大同小异，也是在命令行里运行，这个时候屏幕上会多出一个红色的鼠标，当你把自己的鼠标放到一个应用的窗口上，如果这个窗口是 XWayland 渲染的，那么红色的鼠标就会跟随你的鼠标一起移动。

## Sitemap

See the full [sitemap](https://yangqiuyi.com/sitemap.md) for all pages.
