This is my sad face when people say they don't understand why Wayland pushed the window manager into the display server. Event processing is extremely connected to the window manager; X goes to significant event handling contortions to enable a separate window manager, and even then the contortions are imperfect.
(For example, no window manager can direct mouse scroll wheel events to the currently focused window instead of the window under the cursor. There are other issues too.)