clutter/virtual-input-device: Add API to get seat
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2014>
This commit is contained in:
parent
39e1d5a214
commit
1930cc771d
@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "clutter/clutter-types.h"
|
#include "clutter/clutter-types.h"
|
||||||
#include "clutter/clutter-keymap.h"
|
#include "clutter/clutter-keymap.h"
|
||||||
#include "clutter/clutter-virtual-input-device.h"
|
|
||||||
|
|
||||||
#define CLUTTER_TYPE_SEAT (clutter_seat_get_type ())
|
#define CLUTTER_TYPE_SEAT (clutter_seat_get_type ())
|
||||||
|
|
||||||
|
@ -202,6 +202,20 @@ clutter_virtual_input_device_get_device_type (ClutterVirtualInputDevice *virtual
|
|||||||
return priv->device_type;
|
return priv->device_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_virtual_input_device_get_seat:
|
||||||
|
*
|
||||||
|
* Returns: (transfer none): The seat of the virtual input device
|
||||||
|
*/
|
||||||
|
ClutterSeat *
|
||||||
|
clutter_virtual_input_device_get_seat (ClutterVirtualInputDevice *virtual_device)
|
||||||
|
{
|
||||||
|
ClutterVirtualInputDevicePrivate *priv =
|
||||||
|
clutter_virtual_input_device_get_instance_private (virtual_device);
|
||||||
|
|
||||||
|
return priv->seat;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_virtual_input_device_get_property (GObject *object,
|
clutter_virtual_input_device_get_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
|
@ -174,4 +174,7 @@ void clutter_virtual_input_device_notify_touch_up (ClutterVirtualInputDevice *vi
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
int clutter_virtual_input_device_get_device_type (ClutterVirtualInputDevice *virtual_device);
|
int clutter_virtual_input_device_get_device_type (ClutterVirtualInputDevice *virtual_device);
|
||||||
|
|
||||||
|
CLUTTER_EXPORT
|
||||||
|
ClutterSeat * clutter_virtual_input_device_get_seat (ClutterVirtualInputDevice *virtual_device);
|
||||||
|
|
||||||
#endif /* __CLUTTER_VIRTUAL_INPUT_DEVICE_H__ */
|
#endif /* __CLUTTER_VIRTUAL_INPUT_DEVICE_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user