sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 0386b2afcb88f0ceba144c1f2bbb4b6fc6f13518
parent dfbcd1fbaa5148e537a1c29dc3cbe8ea21ee5eac
Author: llyyr <llyyr.public@gmail.com>
Date:   Sat, 25 May 2024 22:30:20 +0530

input/seat: don't send redundant leave/enter on device creation

Fixes: #8143 #8173
Upstream issue: https://github.com/fcitx/fcitx5/issues/1044

Diffstat:
Msway/input/seat.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sway/input/seat.c b/sway/input/seat.c @@ -802,11 +802,10 @@ static void seat_configure_keyboard(struct sway_seat *seat, return; } - // force notify reenter to pick up the new configuration. This reuses + // Notify reenter to pick up the new configuration. This reuses // the current focused surface to avoid breaking input grabs. struct wlr_surface *surface = seat->wlr_seat->keyboard_state.focused_surface; if (surface) { - wlr_seat_keyboard_notify_clear_focus(seat->wlr_seat); seat_keyboard_notify_enter(seat, surface); } }