aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDanny Bautista <pyrolagus@nerdpol.ch>2018-04-10 11:32:37 -0400
committerDanny Bautista <pyrolagus@nerdpol.ch>2018-04-10 12:40:50 -0400
commit1edb2bd89254069066bab51d316962e85d4445b4 (patch)
tree6c9d9639fcb2d8e0e2b25553307522dd7062073b /include/sway
parent4240ede065c05df05504c820f397259c7fddc9a8 (diff)
Implement cursor event simulation with sway commands.
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/commands.h3
-rw-r--r--include/sway/input/cursor.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index bc5d5412..dbebaa49 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -204,8 +204,9 @@ sway_cmd input_cmd_xkb_options;
sway_cmd input_cmd_xkb_rules;
sway_cmd input_cmd_xkb_variant;
-sway_cmd seat_cmd_fallback;
sway_cmd seat_cmd_attach;
+sway_cmd seat_cmd_fallback;
+sway_cmd seat_cmd_cursor;
sway_cmd cmd_ipc_cmd;
sway_cmd cmd_ipc_events;
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index daf7d4ee..30169aa1 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -30,5 +30,6 @@ struct sway_cursor {
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);
+void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec, uint32_t button, enum wlr_button_state state);
#endif