Email or username:

Password:

Forgot your password?
Top-level
mcc

So I'm sitting here trying to figure out how to tell if a particular app is running in Wayland or XWayland.

This is the answer I get off Stack Overflow. I'm thinking… No. No, that's too silly. It can't be the best way.

I keep researching. It's the best way.

You run xeyes.

Wayland has security that keeps windows from knowing about mouse events in other windows. XWayland doesn't.

Xeyes will track your cursor whenever you're over an XWayland window, then stop if you pass over anything else.

2 comments
Dr. Quadragon ❌

@mcc I think we have a new philosophical razor in our toolbox that applies to computing:

The silliest way to do something is almost always the best one.

gtk4-bugaevc.EXE

@drq @mcc fun fact: I *think* I was the first one to come up with the idea of using xeyes for this (or at least to publish the idea) — those stack overflow answers all reference my old post on Medium

Go Up