From 8e3bdd91bf2af1536899466a35d618e02fb573b5 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 22 Jun 2012 13:21:29 +0100 Subject: [PATCH] Split notify_keyboard_focus into in/out variants Since the two functions had nothing in common but the local variables. Signed-off-by: Daniel Stone --- src/evdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 9660996f..05d1ebe6 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -593,7 +593,8 @@ evdev_notify_keyboard_focus(struct evdev_seat *seat) } } - notify_keyboard_focus(&seat->base.seat, &keys); + notify_keyboard_focus_in(&seat->base.seat, &keys, + STATE_UPDATE_AUTOMATIC); wl_array_release(&keys); } @@ -761,7 +762,7 @@ evdev_remove_devices(struct weston_seat *seat_base) wl_list_for_each_safe(device, next, &seat->devices_list, link) device_removed(device); - notify_keyboard_focus(&seat->base.seat, NULL); + notify_keyboard_focus_out(&seat->base.seat); } void -- 2.34.1