Xev is an X11 debugging tool. Xev creates a window (or can attach to an existing window) and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, clicked in, etc cetera). This is the version of xev maintained by Xorg.