mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-08 08:21:12 -04:00
virtual pointers/keyboard: update capabilities after adding device
In headless case there will not be anyone else to call update_capabilities(), so we must make sure they're called after we add new devices that could... add capabilities. Just inconditionally call it like other pointer/keyboard add handlers.
This commit is contained in:
parent
265d8782c9
commit
25a025c6fb
1 changed files with 2 additions and 0 deletions
2
seat.c
2
seat.c
|
|
@ -226,6 +226,7 @@ handle_virtual_pointer(struct wl_listener *listener, void *data)
|
|||
device->output_name = strdup(event->suggested_output->name);
|
||||
/* event->suggested_seat should be checked if we handle multiple seats */
|
||||
handle_new_pointer(seat, device);
|
||||
update_capabilities(seat);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -408,6 +409,7 @@ handle_virtual_keyboard(struct wl_listener *listener, void *data)
|
|||
* to select the appropriate one */
|
||||
|
||||
handle_new_keyboard(seat, device, true);
|
||||
update_capabilities(seat);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue