aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-10-15 16:18:46 +0200
committerFurkan Sahin <furkan-dev@proton.me>2018-10-15 16:18:46 +0200
commit5496ad0a6c6e01985cc6837a8d8bd0eb98a7f3b8 (patch)
treec2efce1a8da4dc7ec7003818e5277fb2f49bc28b /include
parent77607aa5e3f7d3eef7a48294749385029eb3bc2c (diff)
cursor: functions to warp cursor to container and workspace
The new functions allow a cursor to be warped without changing the focus. This is a preparation commit to handle cursor warping not only in seat_set_focus_warp.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/cursor.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 4d47ab42..5556ea11 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -46,6 +46,11 @@ void dispatch_cursor_button(struct sway_cursor *cursor, 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);
+ struct wl_client *client);
+void cursor_warp_to_container(struct sway_cursor *cursor,
+ struct sway_container *container);
+
+void cursor_warp_to_workspace(struct sway_cursor *cursor,
+ struct sway_workspace *workspace);
#endif