wayland: Add common object for device classes

Add a new object class, MetaWaylandInputDevice, and make all device
classes (pointer, keyboard, touch) inherit it. In the future common
functionality may be placed there.

https://bugzilla.gnome.org/show_bug.cgi?id=771305
This commit is contained in:
Jonas Ådahl
2016-09-12 23:17:28 +08:00
parent d2cdbd433d
commit a6646b32d0
11 changed files with 99 additions and 10 deletions

View File

@@ -34,7 +34,8 @@
#define META_TYPE_WAYLAND_POINTER (meta_wayland_pointer_get_type ())
G_DECLARE_FINAL_TYPE (MetaWaylandPointer, meta_wayland_pointer,
META, WAYLAND_POINTER, GObject);
META, WAYLAND_POINTER,
MetaWaylandInputDevice)
struct _MetaWaylandPointerGrabInterface
{
@@ -62,7 +63,7 @@ struct _MetaWaylandPointerClient
struct _MetaWaylandPointer
{
GObject parent;
MetaWaylandInputDevice parent;
MetaWaylandSeat *seat;