remote-desktop/eis: Fix ConnectToEIS device-types
The change to the device types in xdg-desktop-portal-gnome needs to be reflected in mutter as well, otherwise the device types are not properly passed along. As a result, input emulation fails. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3194 See-also: https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/108/diffs?commit_id=2b3163a Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3447>
This commit is contained in:
parent
90cff013a5
commit
a191af1f3d
@ -1914,14 +1914,14 @@ handle_connect_to_eis (MetaDBusRemoteDesktopSession *skeleton,
|
|||||||
|
|
||||||
if (!session->eis)
|
if (!session->eis)
|
||||||
{
|
{
|
||||||
uint32_t device_types_bitmask;
|
MetaRemoteDesktopDeviceTypes device_types = META_REMOTE_DESKTOP_DEVICE_TYPE_NONE;
|
||||||
MetaRemoteDesktopDeviceTypes device_types;
|
|
||||||
MetaEisDeviceTypes eis_device_types;
|
MetaEisDeviceTypes eis_device_types;
|
||||||
|
GVariant *v;
|
||||||
|
|
||||||
if (g_variant_lookup (arg_options, "device-types", "u",
|
v = g_variant_lookup_value (arg_options, "device-types", G_VARIANT_TYPE_UINT32);
|
||||||
&device_types_bitmask))
|
if (v)
|
||||||
{
|
{
|
||||||
device_types = device_types_bitmask;
|
device_types = g_variant_get_uint32 (v);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user