mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-09 18:00:17 +01:00
ei: two more bug log messages
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ecd75fcf40
commit
cb4dcaa078
1 changed files with 9 additions and 3 deletions
|
|
@ -128,15 +128,21 @@ _public_ void
|
|||
ei_seat_drop_capability(struct ei_seat *seat,
|
||||
enum ei_device_capability cap)
|
||||
{
|
||||
if (seat->state == EI_SEAT_STATE_NEW)
|
||||
flag_clear(seat->capabilities_mask, cap);
|
||||
if (seat->state != EI_SEAT_STATE_NEW) {
|
||||
log_bug_client(ei_seat_get_context(seat), "Seat is already bound\n");
|
||||
return;
|
||||
}
|
||||
|
||||
flag_clear(seat->capabilities_mask, cap);
|
||||
}
|
||||
|
||||
_public_ void
|
||||
ei_seat_bind(struct ei_seat *seat)
|
||||
{
|
||||
if (seat->state != EI_SEAT_STATE_NEW)
|
||||
if (seat->state != EI_SEAT_STATE_NEW) {
|
||||
log_bug_client(ei_seat_get_context(seat), "Seat is already bound\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ei_send_seat_bind(seat, seat->capabilities & seat->capabilities_mask);
|
||||
seat->state = EI_SEAT_STATE_BOUND;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue