mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-14 23:50:27 +01:00
ei: add an ei.connection.type property to be filled in automatically
Planned values: 'socket' and 'portal', the latter to be set by the portal. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1ae193160e
commit
ed208f8374
1 changed files with 7 additions and 0 deletions
|
|
@ -130,6 +130,12 @@ set_prop_pid(struct ei *ei)
|
|||
ei_property_update(ei, "ei.application.pid", pid, EI_PROPERTY_PERM_NONE);
|
||||
}
|
||||
|
||||
static void
|
||||
set_prop_type(struct ei *ei)
|
||||
{
|
||||
ei_property_update(ei, "ei.connection.type", "socket", EI_PROPERTY_PERM_NONE);
|
||||
}
|
||||
|
||||
_public_ struct ei *
|
||||
ei_new(void *user_data)
|
||||
{
|
||||
|
|
@ -152,6 +158,7 @@ ei_new(void *user_data)
|
|||
|
||||
set_prop_pid(ei);
|
||||
set_prop_cmdline(ei);
|
||||
set_prop_type(ei);
|
||||
|
||||
return steal(&ei);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue