wayland: Implement support for wp_relative_pointer
Add support for sending relative pointer motion deltas to clients who request such events by creating wp_relative_pointer objects via wp_relative_pointer_manager. This currently implements the unstable version 1 from wayland-protocols. https://bugzilla.gnome.org/show_bug.cgi?id=744104
This commit is contained in:
@@ -58,6 +58,7 @@ struct _MetaWaylandPointerClient
|
||||
struct wl_list pointer_resources;
|
||||
struct wl_list swipe_gesture_resources;
|
||||
struct wl_list pinch_gesture_resources;
|
||||
struct wl_list relative_pointer_resources;
|
||||
};
|
||||
|
||||
struct _MetaWaylandPointer
|
||||
@@ -142,4 +143,6 @@ MetaWaylandPointerClient * meta_wayland_pointer_get_pointer_client (MetaWaylandP
|
||||
struct wl_client *client);
|
||||
void meta_wayland_pointer_unbind_pointer_client_resource (struct wl_resource *resource);
|
||||
|
||||
void meta_wayland_relative_pointer_init (MetaWaylandCompositor *compositor);
|
||||
|
||||
#endif /* META_WAYLAND_POINTER_H */
|
||||
|
Reference in New Issue
Block a user