Implement remaining actions, split touch for different seats

This commit is contained in:
Samuel Grahn 2019-02-03 03:38:44 +01:00
parent f89f45e58d
commit 7873a0f13c
20 changed files with 385 additions and 20 deletions

View file

@ -282,9 +282,15 @@ sway_cmd seat_cmd_pointer_constraint;
sway_cmd touch_cmd_gesture;
sway_cmd touch_cmd_binding;
sway_cmd touch_cmd_target;
sway_cmd touch_gesture_cmd_touch;
sway_cmd touch_gesture_cmd_threshold;
sway_cmd touch_gesture_cmd_target;
sway_cmd touch_gesture_cmd_swipe;
sway_cmd touch_gesture_cmd_pinch;
sway_cmd touch_gesture_cmd_rotate;
sway_cmd touch_gesture_cmd_delay;
sway_cmd cmd_ipc_cmd;
sway_cmd cmd_ipc_events;

View file

@ -106,6 +106,11 @@ struct gesture_config {
char *command;
};
struct gesture_target_config {
char *identifier;
struct libtouch_target *target;
};
/**
* options for input devices
@ -428,6 +433,7 @@ struct sway_config {
list_t *input_configs;
list_t *input_type_configs;
list_t *gesture_configs;
list_t *gesture_target_configs;
list_t *seat_configs;
list_t *criteria;
list_t *no_focus;
@ -658,10 +664,16 @@ int gesture_identifier_cmp(const void *item, const void *data);
int gesture_libtouch_cmp(const void *item, const void *data);
int gesture_target_identifier_cmp(const void *item, const void *data);
struct gesture_config *get_gesture_config(const char *identifier);
struct gesture_config *new_gesture_config(const char *identifier);
struct gesture_target_config *get_gesture_target_config(const char* identifier);
struct gesture_target_config *create_gesture_target_config(const char* identifier);
/**
* Updates the value of config->font_height based on the max title height
* reported by each container. If recalculate is true, the containers will

View file

@ -36,7 +36,7 @@ struct sway_cursor {
struct wl_listener axis;
struct wl_listener frame;
struct libtouch_engine *gesture_engine;
struct libtouch_progress_tracker *gesture_tracker;
struct wl_listener touch_down;
struct wl_listener touch_up;
struct wl_listener touch_motion;