[PATCH weston] libinput: Restore keyboard focus after VT switch

Daniel Stone daniel at fooishbar.org
Sun Jul 22 10:09:06 UTC 2018

Hi Jamey,

On Wed, 23 May 2018 at 14:16, Jamey Sharp <jamey at minilop.net> wrote:
> Under Weston's drm-backend, after returning to Weston from another VT,
> no window has focus.
> There's already code in notify_keyboard_focus_out and
> notify_keyboard_focus_in to save and restore focus, respectively; and
> udev_input_enable eventually calls notify_keyboard_focus_in, by way of
> evdev_notify_keyboard_focus. But udev_input_disable doesn't currently
> call notify_keyboard_focus_out.
> This patch makes udev_input_disable symmetric with udev_input_enable by
> calling notify_keyboard_focus_out on every seat, to save focus before
> suspending libinput. In my testing this successfully resolved my issue.
> However, I don't have a multi-seat setup to verify that it works there
> too.

This seems correct to me. Peter, any thoughts/comments?


More information about the wayland-devel mailing list