aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h48
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
186struct sway_container *seat_get_focused_container(struct sway_seat *seat); 202struct 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)
206void 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,
239void seatop_begin_default(struct sway_seat *seat); 259void seatop_begin_default(struct sway_seat *seat);
240 260
241void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, 261void 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
264void seatop_begin_down_on_surface(struct sway_seat *seat,
265 struct wlr_surface *surface, uint32_t time_msec, double sx, double sy);
243 266
244void seatop_begin_move_floating(struct sway_seat *seat, 267void 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,
271void seatop_pointer_motion(struct sway_seat *seat, uint32_t time_msec); 294void seatop_pointer_motion(struct sway_seat *seat, uint32_t time_msec);
272 295
273void seatop_pointer_axis(struct sway_seat *seat, 296void seatop_pointer_axis(struct sway_seat *seat,
274 struct wlr_event_pointer_axis *event); 297 struct wlr_pointer_axis_event *event);
275 298
276void seatop_tablet_tool_tip(struct sway_seat *seat, 299void 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,
280void seatop_tablet_tool_motion(struct sway_seat *seat, 303void 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
306void seatop_hold_begin(struct sway_seat *seat,
307 struct wlr_pointer_hold_begin_event *event);
308void seatop_hold_end(struct sway_seat *seat,
309 struct wlr_pointer_hold_end_event *event);
310
311void seatop_pinch_begin(struct sway_seat *seat,
312 struct wlr_pointer_pinch_begin_event *event);
313void seatop_pinch_update(struct sway_seat *seat,
314 struct wlr_pointer_pinch_update_event *event);
315void seatop_pinch_end(struct sway_seat *seat,
316 struct wlr_pointer_pinch_end_event *event);
317
318void seatop_swipe_begin(struct sway_seat *seat,
319 struct wlr_pointer_swipe_begin_event *event);
320void seatop_swipe_update(struct sway_seat *seat,
321 struct wlr_pointer_swipe_update_event *event);
322void seatop_swipe_end(struct sway_seat *seat,
323 struct wlr_pointer_swipe_end_event *event);
324
283void seatop_rebase(struct sway_seat *seat, uint32_t time_msec); 325void seatop_rebase(struct sway_seat *seat, uint32_t time_msec);
284 326
285/** 327/**