diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-20 05:06:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 05:06:03 +0200 |
commit | 5b8257b88f703f48466f3b917f1ceaee7c457355 (patch) | |
tree | f0d00406e3cb449c2492d6cb8b35a1a57546eebd /include | |
parent | Merge pull request #2885 from RyanDwyer/fix-tiling-drag-crash (diff) | |
parent | Introduce cursor_rebase (diff) | |
download | sway-5b8257b88f703f48466f3b917f1ceaee7c457355.tar.gz sway-5b8257b88f703f48466f3b917f1ceaee7c457355.tar.zst sway-5b8257b88f703f48466f3b917f1ceaee7c457355.zip |
Merge pull request #2872 from RyanDwyer/cursor-rebase
Introduce cursor_rebase
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/cursor.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 299721f0..50ac453b 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h | |||
@@ -40,8 +40,20 @@ struct sway_cursor { | |||
40 | 40 | ||
41 | void sway_cursor_destroy(struct sway_cursor *cursor); | 41 | void sway_cursor_destroy(struct sway_cursor *cursor); |
42 | struct sway_cursor *sway_cursor_create(struct sway_seat *seat); | 42 | struct sway_cursor *sway_cursor_create(struct sway_seat *seat); |
43 | void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, | 43 | |
44 | bool allow_refocusing); | 44 | /** |
45 | * "Rebase" a cursor on top of whatever view is underneath it. | ||
46 | * | ||
47 | * This chooses a cursor icon and sends a motion event to the surface. | ||
48 | */ | ||
49 | void cursor_rebase(struct sway_cursor *cursor); | ||
50 | |||
51 | /** | ||
52 | * Like cursor_rebase, but also allows focus to change when the cursor enters a | ||
53 | * new container. | ||
54 | */ | ||
55 | void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec); | ||
56 | |||
45 | void dispatch_cursor_button(struct sway_cursor *cursor, | 57 | void dispatch_cursor_button(struct sway_cursor *cursor, |
46 | struct wlr_input_device *device, uint32_t time_msec, uint32_t button, | 58 | struct wlr_input_device *device, uint32_t time_msec, uint32_t button, |
47 | enum wlr_button_state state); | 59 | enum wlr_button_state state); |