backends: Delegate pointer confinements to an impl object

Split pointer confinements in 2 objects, one set from the upper layers
containing its definition, and another managed by the backend that
applies it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
Carlos Garnacho
2020-07-08 18:17:13 +02:00
committed by Marge Bot
parent efd065259d
commit 8a8d47725c
15 changed files with 1134 additions and 813 deletions

View File

@ -27,15 +27,15 @@
#include <glib-object.h>
#include "backends/meta-pointer-constraint.h"
#include "wayland/meta-pointer-confinement-wayland.h"
G_BEGIN_DECLS
#define META_TYPE_POINTER_LOCK_WAYLAND (meta_pointer_lock_wayland_get_type ())
G_DECLARE_FINAL_TYPE (MetaPointerLockWayland, meta_pointer_lock_wayland,
META, POINTER_LOCK_WAYLAND, MetaPointerConstraint);
META, POINTER_LOCK_WAYLAND, MetaPointerConfinementWayland)
MetaPointerConstraint *meta_pointer_lock_wayland_new (void);
MetaPointerConfinementWayland *meta_pointer_lock_wayland_new (MetaWaylandPointerConstraint *constraint);
G_END_DECLS