diff options
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r-- | include/sway/input/seat.h | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 4118df66..c2041742 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -18,7 +18,23 @@ struct sway_seatop_impl { | |||
18 | enum wlr_button_state state); | 18 | enum wlr_button_state state); |
19 | void (*pointer_motion)(struct sway_seat *seat, uint32_t time_msec); | 19 | void (*pointer_motion)(struct sway_seat *seat, uint32_t time_msec); |
20 | void (*pointer_axis)(struct sway_seat *seat, | 20 | void (*pointer_axis)(struct sway_seat *seat, |
21 | struct wlr_event_pointer_axis *event); | 21 | struct wlr_pointer_axis_event *event); |
22 | void (*hold_begin)(struct sway_seat *seat, | ||
23 | struct wlr_pointer_hold_begin_event *event); | ||
24 | void (*hold_end)(struct sway_seat *seat, | ||
25 | struct wlr_pointer_hold_end_event *event); | ||
26 | void (*pinch_begin)(struct sway_seat *seat, | ||
27 | struct wlr_pointer_pinch_begin_event *event); | ||
28 | void (*pinch_update)(struct sway_seat *seat, | ||
29 | struct wlr_pointer_pinch_update_event *event); | ||
30 | void (*pinch_end)(struct sway_seat *seat, | ||
31 | struct wlr_pointer_pinch_end_event *event); | ||
32 | void (*swipe_begin)(struct sway_seat *seat, | ||
33 | struct wlr_pointer_swipe_begin_event *event); | ||
34 | void (*swipe_update)(struct sway_seat *seat, | ||
35 | struct wlr_pointer_swipe_update_event *event); | ||
36 | void (*swipe_end)(struct sway_seat *seat, | ||
37 | struct wlr_pointer_swipe_end_event *event); | ||
22 | void (*rebase)(struct sway_seat *seat, uint32_t time_msec); | 38 | void (*rebase)(struct sway_seat *seat, uint32_t time_msec); |
23 | void (*tablet_tool_motion)(struct sway_seat *seat, | 39 | void (*tablet_tool_motion)(struct sway_seat *seat, |
24 | struct sway_tablet_tool *tool, uint32_t time_msec); | 40 | struct sway_tablet_tool *tool, uint32_t time_msec); |
@@ -185,6 +201,10 @@ struct sway_workspace *seat_get_last_known_workspace(struct sway_seat *seat); | |||
185 | 201 | ||
186 | struct sway_container *seat_get_focused_container(struct sway_seat *seat); | 202 | struct sway_container *seat_get_focused_container(struct sway_seat *seat); |
187 | 203 | ||
204 | // Force focus to a particular surface that is not part of the workspace | ||
205 | // hierarchy (used for lockscreen) | ||
206 | void sway_force_focus(struct wlr_surface *surface); | ||
207 | |||
188 | /** | 208 | /** |
189 | * Return the last container to be focused for the seat (or the most recently | 209 | * Return the last container to be focused for the seat (or the most recently |
190 | * opened if no container has received focused) that is a child of the given | 210 | * opened if no container has received focused) that is a child of the given |
@@ -239,7 +259,10 @@ enum wlr_edges find_resize_edge(struct sway_container *cont, | |||
239 | void seatop_begin_default(struct sway_seat *seat); | 259 | void seatop_begin_default(struct sway_seat *seat); |
240 | 260 | ||
241 | void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, | 261 | void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, |
242 | uint32_t time_msec, int sx, int sy); | 262 | uint32_t time_msec, double sx, double sy); |
263 | |||
264 | void seatop_begin_down_on_surface(struct sway_seat *seat, | ||
265 | struct wlr_surface *surface, uint32_t time_msec, double sx, double sy); | ||
243 | 266 | ||
244 | void seatop_begin_move_floating(struct sway_seat *seat, | 267 | void seatop_begin_move_floating(struct sway_seat *seat, |
245 | struct sway_container *con); | 268 | struct sway_container *con); |
@@ -271,7 +294,7 @@ void seatop_button(struct sway_seat *seat, uint32_t time_msec, | |||
271 | void seatop_pointer_motion(struct sway_seat *seat, uint32_t time_msec); | 294 | void seatop_pointer_motion(struct sway_seat *seat, uint32_t time_msec); |
272 | 295 | ||
273 | void seatop_pointer_axis(struct sway_seat *seat, | 296 | void seatop_pointer_axis(struct sway_seat *seat, |
274 | struct wlr_event_pointer_axis *event); | 297 | struct wlr_pointer_axis_event *event); |
275 | 298 | ||
276 | void seatop_tablet_tool_tip(struct sway_seat *seat, | 299 | void seatop_tablet_tool_tip(struct sway_seat *seat, |
277 | struct sway_tablet_tool *tool, uint32_t time_msec, | 300 | struct sway_tablet_tool *tool, uint32_t time_msec, |
@@ -280,6 +303,25 @@ void seatop_tablet_tool_tip(struct sway_seat *seat, | |||
280 | void seatop_tablet_tool_motion(struct sway_seat *seat, | 303 | void seatop_tablet_tool_motion(struct sway_seat *seat, |
281 | struct sway_tablet_tool *tool, uint32_t time_msec); | 304 | struct sway_tablet_tool *tool, uint32_t time_msec); |
282 | 305 | ||
306 | void seatop_hold_begin(struct sway_seat *seat, | ||
307 | struct wlr_pointer_hold_begin_event *event); | ||
308 | void seatop_hold_end(struct sway_seat *seat, | ||
309 | struct wlr_pointer_hold_end_event *event); | ||
310 | |||
311 | void seatop_pinch_begin(struct sway_seat *seat, | ||
312 | struct wlr_pointer_pinch_begin_event *event); | ||
313 | void seatop_pinch_update(struct sway_seat *seat, | ||
314 | struct wlr_pointer_pinch_update_event *event); | ||
315 | void seatop_pinch_end(struct sway_seat *seat, | ||
316 | struct wlr_pointer_pinch_end_event *event); | ||
317 | |||
318 | void seatop_swipe_begin(struct sway_seat *seat, | ||
319 | struct wlr_pointer_swipe_begin_event *event); | ||
320 | void seatop_swipe_update(struct sway_seat *seat, | ||
321 | struct wlr_pointer_swipe_update_event *event); | ||
322 | void seatop_swipe_end(struct sway_seat *seat, | ||
323 | struct wlr_pointer_swipe_end_event *event); | ||
324 | |||
283 | void seatop_rebase(struct sway_seat *seat, uint32_t time_msec); | 325 | void seatop_rebase(struct sway_seat *seat, uint32_t time_msec); |
284 | 326 | ||
285 | /** | 327 | /** |