Split notify_keyboard_focus into in/out variants
authorDaniel Stone <daniel@fooishbar.org>
Fri, 22 Jun 2012 12:21:29 +0000 (13:21 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:29 +0000 (17:51 +0100)
Since the two functions had nothing in common but the local variables.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/evdev.c

index 9660996..05d1ebe 100644 (file)
@@ -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