mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-08 20:58:11 +02:00
eis: don't send seat events unless the client supports ei_seat
This commit is contained in:
parent
20e425a48d
commit
2e4d984819
1 changed files with 4 additions and 0 deletions
|
|
@ -175,6 +175,10 @@ client_send_disconnect(struct eis_client *client, const char *reason)
|
||||||
static int
|
static int
|
||||||
client_send_seat_added(struct eis_client *client, struct eis_seat *seat)
|
client_send_seat_added(struct eis_client *client, struct eis_seat *seat)
|
||||||
{
|
{
|
||||||
|
/* Client didn't announce ei_seat */
|
||||||
|
if (client->interface_versions.ei_seat == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
return eis_connection_event_seat(client->connection, eis_seat_get_id(seat),
|
return eis_connection_event_seat(client->connection, eis_seat_get_id(seat),
|
||||||
eis_seat_get_version(seat));
|
eis_seat_get_version(seat));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue