aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h1
-rw-r--r--include/sway/input/cursor.h5
-rw-r--r--include/sway/input/input-manager.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index be5a00b5..fef3a60a 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -43,6 +43,7 @@ enum binding_flags {
struct sway_binding {
enum binding_input_type type;
int order;
+ char *input;
uint32_t flags;
list_t *keys; // sorted in ascending order
uint32_t modifiers;
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 5556ea11..299721f0 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -42,8 +42,9 @@ void sway_cursor_destroy(struct sway_cursor *cursor);
struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
bool allow_refocusing);
-void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec,
- uint32_t button, enum wlr_button_state state);
+void dispatch_cursor_button(struct sway_cursor *cursor,
+ struct wlr_input_device *device, uint32_t time_msec, uint32_t button,
+ enum wlr_button_state state);
void cursor_set_image(struct sway_cursor *cursor, const char *image,
struct wl_client *client);
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h
index bde3cf46..b7073006 100644
--- a/include/sway/input/input-manager.h
+++ b/include/sway/input/input-manager.h
@@ -63,5 +63,6 @@ struct sway_seat *input_manager_current_seat(struct sway_input_manager *input);
struct input_config *input_device_get_config(struct sway_input_device *device);
+char *input_device_get_identifier(struct wlr_input_device *device);
#endif