Many sources indicate that xprop -root _NET_ACTIVE_WINDOW
should tell me which window is currently active. Yet, when I try this command:
➜ ~ xprop -root _NET_ACTIVE_WINDOW
_NET_ACTIVE_WINDOW: not found.
I can't for the life of me ascertain why this doesn't work. I've had friends run the exact same command and they get window information.
Where should I start looking? My environment is XMonad, X started from LightDM, xorg-server 1.19.
Best Answer
That's only available for Window Managers that implement the Extended Window Manager Hints (EWMH) freedesktop specification (extensions over the ICCCM standard which
xmonad
implements), which apparentlyxmonad
does not.You'd need to use a different Window Manager, or see if
xmonad
provides an API of its own to query that information.