Skip to content

0ee1938

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 15:18

fix(wayland): Move the X server's input focus with the seat's keyboard

The seat's keyboard target forwarded every event to a window's wl_surface,
so an X11 window never went through Smithay's X11Surface target, which is
what sets the X server's input focus (SetInputFocus or WM_TAKE_FOCUS by the
window's input model) on enter and releases it on leave. Xwayland routes a
key to that focus, not to the surface the seat entered, so the focus stayed
wherever an X client last put it: Steam moving it between its own windows
sent every X11 window's keys to Steam's, and once Steam exited the focus
fell to None and no X11 window got a key again. A window the policy focused
as it mapped also lost its enter outright, having no wl_surface until
Xwayland associated one, where the X11 surface holds it until then.

An X11 window's keyboard events now go to its X11Surface; popups, layer
surfaces, and Wayland windows keep going to their wl_surface.