summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-04-10 18:17:51 -0400
committerLibravatar GitHub <noreply@github.com>2018-04-10 18:17:51 -0400
commit96118be241b5a2f0f629a1f1859f1ec4ed39734c (patch)
tree261a479b5d6e14b33d94d48f8be882fc7e3930d7 /include
parentMerge pull request #1794 from thejan2009/swaybar-ipc-mode-fix (diff)
parentAdd documentation for seat cursor command. (diff)
downloadsway-96118be241b5a2f0f629a1f1859f1ec4ed39734c.tar.gz
sway-96118be241b5a2f0f629a1f1859f1ec4ed39734c.tar.zst
sway-96118be241b5a2f0f629a1f1859f1ec4ed39734c.zip
Merge pull request #1793 from PyroLagus/input-simulation
Cursor input simulation with sway commands.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h3
-rw-r--r--include/sway/input/cursor.h2
2 files changed, 4 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;
204sway_cmd input_cmd_xkb_rules; 204sway_cmd input_cmd_xkb_rules;
205sway_cmd input_cmd_xkb_variant; 205sway_cmd input_cmd_xkb_variant;
206 206
207sway_cmd seat_cmd_fallback;
208sway_cmd seat_cmd_attach; 207sway_cmd seat_cmd_attach;
208sway_cmd seat_cmd_fallback;
209sway_cmd seat_cmd_cursor;
209 210
210sway_cmd cmd_ipc_cmd; 211sway_cmd cmd_ipc_cmd;
211sway_cmd cmd_ipc_events; 212sway_cmd cmd_ipc_events;
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index daf7d4ee..fcd94437 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -30,5 +30,7 @@ struct sway_cursor {
30void sway_cursor_destroy(struct sway_cursor *cursor); 30void sway_cursor_destroy(struct sway_cursor *cursor);
31struct sway_cursor *sway_cursor_create(struct sway_seat *seat); 31struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
32void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time); 32void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time);
33void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec,
34 uint32_t button, enum wlr_button_state state);
33 35
34#endif 36#endif