5

Is there a command in Linux that can tell whether a program uses Wayland, Xorg, or Xwayland?

2 Answers 2

8

Not a command per se, but Sergey Bugaev shared a cool trick:

Launch xeyes and move mouse over a window. If the eyes are moving, it’s an XWayland window, otherwise it’s a native Wayland window.

xeyes

xeyes is typically pre-installed in most distros. Otherwise, it can be found in the x11-apps package or similar.

1
  • +1 Using xeyes for this is both funny and effective. If using Arch Linux, the package is xorg-xeyes. See also this related answer. Apr 14 at 11:11
4

I can provide a similar answer, but the tool should already be on your system.

You can use xprop which is most likely already available on your system. After you start the program using the terminal every X11 window will show you a crosshair, every Wayland window ignores your shoot for X11 properties.

Example on my system: on the left you can see Thunderbird drawing with X11 and left the Gnome Terminal drawing with native Wayland.

See screenshot

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jun 28 at 22:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .