diff options
author | Rouven Czerwinski <rouven@czerwinskis.de> | 2018-10-15 16:18:46 +0200 |
---|---|---|
committer | Rouven Czerwinski <rouven@czerwinskis.de> | 2018-10-16 15:47:02 +0200 |
commit | 0969bf758b258b328f48ee360b30764b08a7d145 (patch) | |
tree | c2efce1a8da4dc7ec7003818e5277fb2f49bc28b /include | |
parent | view: move arrange_workspace into view_map (diff) | |
download | sway-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')
-rw-r--r-- | include/sway/input/cursor.h | 7 |
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 | ||
48 | void cursor_set_image(struct sway_cursor *cursor, const char *image, | 48 | void cursor_set_image(struct sway_cursor *cursor, const char *image, |
49 | struct wl_client *client); | 49 | struct wl_client *client); |
50 | 50 | ||
51 | void cursor_warp_to_container(struct sway_cursor *cursor, | ||
52 | struct sway_container *container); | ||
53 | |||
54 | void cursor_warp_to_workspace(struct sway_cursor *cursor, | ||
55 | struct sway_workspace *workspace); | ||
51 | #endif | 56 | #endif |