wayland: Move device seat association to MetaWaylandInputDevice

Make the device <-> seat association permanent, and move it into
MetaWaylandInputDevice. A device will never be disassociated with a
seat, so there is no point in unsetting it.

https://bugzilla.gnome.org/show_bug.cgi?id=771305
This commit is contained in:
Jonas Ådahl
2016-09-12 23:20:36 +08:00
parent a6646b32d0
commit 87f82d9fc0
11 changed files with 140 additions and 48 deletions

View File

@@ -25,6 +25,7 @@
#include <glib.h>
#include "meta-wayland-types.h"
#include "meta-wayland-seat.h"
#include "meta-wayland-pointer-gesture-swipe.h"
#include "meta-wayland-pointer-gesture-pinch.h"
#include "meta-wayland-surface.h"
@@ -65,8 +66,6 @@ struct _MetaWaylandPointer
{
MetaWaylandInputDevice parent;
MetaWaylandSeat *seat;
MetaWaylandPointerClient *focus_client;
GHashTable *pointer_clients;
@@ -91,8 +90,7 @@ struct _MetaWaylandPointer
guint32 button_count;
};
void meta_wayland_pointer_enable (MetaWaylandPointer *pointer,
MetaWaylandSeat *seat);
void meta_wayland_pointer_enable (MetaWaylandPointer *pointer);
void meta_wayland_pointer_disable (MetaWaylandPointer *pointer);