mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-04 20:10:17 +01:00
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 <daniel@fooishbar.org>
This commit is contained in:
parent
07a21a261d
commit
8e3bdd91bf
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue