aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2018-10-15 16:18:46 +0200
committerLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2018-10-16 15:47:02 +0200
commit0969bf758b258b328f48ee360b30764b08a7d145 (patch)
treec2efce1a8da4dc7ec7003818e5277fb2f49bc28b /include/sway/input/cursor.h
parentview: move arrange_workspace into view_map (diff)
downloadsway-0969bf758b258b328f48ee360b30764b08a7d145.tar.gz
sway-0969bf758b258b328f48ee360b30764b08a7d145.tar.zst
sway-0969bf758b258b328f48ee360b30764b08a7d145.zip
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/input/cursor.h')
-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,
46 uint32_t button, enum wlr_button_state state); 46 uint32_t button, enum wlr_button_state state);
47 47
48void cursor_set_image(struct sway_cursor *cursor, const char *image, 48void cursor_set_image(struct sway_cursor *cursor, const char *image,
49 struct wl_client *client); 49 struct wl_client *client);
50 50
51void cursor_warp_to_container(struct sway_cursor *cursor,
52 struct sway_container *container);
53
54void cursor_warp_to_workspace(struct sway_cursor *cursor,
55 struct sway_workspace *workspace);
51#endif 56#endif