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

@@ -54,7 +54,7 @@
#define META_TYPE_WAYLAND_KEYBOARD (meta_wayland_keyboard_get_type ())
G_DECLARE_FINAL_TYPE (MetaWaylandKeyboard, meta_wayland_keyboard,
META, WAYLAND_KEYBOARD,
GObject);
MetaWaylandInputDevice)
struct _MetaWaylandKeyboardGrabInterface
{
@@ -81,7 +81,7 @@ typedef struct
struct _MetaWaylandKeyboard
{
GObject parent;
MetaWaylandInputDevice parent;
MetaWaylandSeat *seat;