Implement the pointer-gestures-unstable-v1 protocol

This protocol relays touchpad gesture events produced by libinput to
supporting clients (e.g. Evince, Eye of GNOME).
This commit is contained in:
Greg V 2019-01-26 01:51:38 +03:00 committed by emersion
parent 018727b1fc
commit 9fe8e37961
16 changed files with 790 additions and 0 deletions

View file

@ -39,6 +39,12 @@ struct roots_cursor {
struct wl_listener button;
struct wl_listener axis;
struct wl_listener frame;
struct wl_listener swipe_begin;
struct wl_listener swipe_update;
struct wl_listener swipe_end;
struct wl_listener pinch_begin;
struct wl_listener pinch_update;
struct wl_listener pinch_end;
struct wl_listener touch_down;
struct wl_listener touch_up;

View file

@ -15,6 +15,7 @@
#include <wlr/types/wlr_list.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_pointer_gestures_v1.h>
#include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_gtk_primary_selection.h>
#include <wlr/types/wlr_relative_pointer_v1.h>
@ -67,6 +68,7 @@ struct roots_desktop {
struct wlr_presentation *presentation;
struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager_v1;
struct wlr_relative_pointer_manager_v1 *relative_pointer_manager;
struct wlr_pointer_gestures_v1 *pointer_gestures;
struct wl_listener new_output;
struct wl_listener layout_change;