diff options
author | emersion <contact@emersion.fr> | 2018-04-10 18:17:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 18:17:51 -0400 |
commit | 96118be241b5a2f0f629a1f1859f1ec4ed39734c (patch) | |
tree | 261a479b5d6e14b33d94d48f8be882fc7e3930d7 /include | |
parent | Merge pull request #1794 from thejan2009/swaybar-ipc-mode-fix (diff) | |
parent | Add documentation for seat cursor command. (diff) | |
download | sway-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.h | 3 | ||||
-rw-r--r-- | include/sway/input/cursor.h | 2 |
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; | |||
204 | sway_cmd input_cmd_xkb_rules; | 204 | sway_cmd input_cmd_xkb_rules; |
205 | sway_cmd input_cmd_xkb_variant; | 205 | sway_cmd input_cmd_xkb_variant; |
206 | 206 | ||
207 | sway_cmd seat_cmd_fallback; | ||
208 | sway_cmd seat_cmd_attach; | 207 | sway_cmd seat_cmd_attach; |
208 | sway_cmd seat_cmd_fallback; | ||
209 | sway_cmd seat_cmd_cursor; | ||
209 | 210 | ||
210 | sway_cmd cmd_ipc_cmd; | 211 | sway_cmd cmd_ipc_cmd; |
211 | sway_cmd cmd_ipc_events; | 212 | sway_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 { | |||
30 | void sway_cursor_destroy(struct sway_cursor *cursor); | 30 | void sway_cursor_destroy(struct sway_cursor *cursor); |
31 | struct sway_cursor *sway_cursor_create(struct sway_seat *seat); | 31 | struct sway_cursor *sway_cursor_create(struct sway_seat *seat); |
32 | void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time); | 32 | void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time); |
33 | void 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 |