aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2018-10-15 16:18:46 +0200
committerRouven Czerwinski <rouven@czerwinskis.de>2018-10-16 15:47:02 +0200
commit0969bf758b258b328f48ee360b30764b08a7d145 (patch)
treec2efce1a8da4dc7ec7003818e5277fb2f49bc28b /include/sway
parent892446a0b6eba9d14cdf7462c86565a7a60d12ae (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/sway')
-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