mirror of
https://github.com/labwc/labwc.git
synced 2026-03-09 05:33:53 -04:00
factor keyboard/cursor cleanup into own functions
This commit is contained in:
parent
0f9374c701
commit
58f5e8d16a
4 changed files with 28 additions and 12 deletions
|
|
@ -218,3 +218,13 @@ keyboard_init(struct seat *seat)
|
|||
seat->keyboard_modifiers.notify = keyboard_modifiers_notify;
|
||||
wl_signal_add(&kb->events.modifiers, &seat->keyboard_modifiers);
|
||||
}
|
||||
|
||||
void
|
||||
keyboard_finish(struct seat *seat)
|
||||
{
|
||||
if (seat->keyboard_group) {
|
||||
wlr_keyboard_group_destroy(seat->keyboard_group);
|
||||
}
|
||||
wl_list_remove(&seat->keyboard_key.link);
|
||||
wl_list_remove(&seat->keyboard_modifiers.link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue