diff options
author | 2018-02-14 14:30:27 -0500 | |
---|---|---|
committer | 2018-02-14 14:30:27 -0500 | |
commit | 946d9459c57fc38b2536d40a45b7d4c9186b6734 (patch) | |
tree | 0fe98d3382dccb56a09f90ddeb5938d880234d1c /include/sway | |
parent | remove old focus member (diff) | |
download | sway-946d9459c57fc38b2536d40a45b7d4c9186b6734.tar.gz sway-946d9459c57fc38b2536d40a45b7d4c9186b6734.tar.zst sway-946d9459c57fc38b2536d40a45b7d4c9186b6734.zip |
get swayc in direction
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/input/seat.h | 3 | ||||
-rw-r--r-- | include/sway/layout.h | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 26a7e5dc..f9244f43 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -60,6 +60,9 @@ swayc_t *sway_seat_get_focus(struct sway_seat *seat); | |||
60 | 60 | ||
61 | swayc_t *sway_seat_get_focus_inactive(struct sway_seat *seat, swayc_t *container); | 61 | swayc_t *sway_seat_get_focus_inactive(struct sway_seat *seat, swayc_t *container); |
62 | 62 | ||
63 | swayc_t *sway_seat_get_focus_by_type(struct sway_seat *seat, | ||
64 | enum swayc_types type); | ||
65 | |||
63 | void sway_seat_set_config(struct sway_seat *seat, struct seat_config *seat_config); | 66 | void sway_seat_set_config(struct sway_seat *seat, struct seat_config *seat_config); |
64 | 67 | ||
65 | #endif | 68 | #endif |
diff --git a/include/sway/layout.h b/include/sway/layout.h index 69a66674..e82c4442 100644 --- a/include/sway/layout.h +++ b/include/sway/layout.h | |||
@@ -4,6 +4,18 @@ | |||
4 | #include <wlr/types/wlr_output_layout.h> | 4 | #include <wlr/types/wlr_output_layout.h> |
5 | #include "sway/container.h" | 5 | #include "sway/container.h" |
6 | 6 | ||
7 | enum movement_direction { | ||
8 | MOVE_LEFT, | ||
9 | MOVE_RIGHT, | ||
10 | MOVE_UP, | ||
11 | MOVE_DOWN, | ||
12 | MOVE_PARENT, | ||
13 | MOVE_CHILD, | ||
14 | MOVE_NEXT, | ||
15 | MOVE_PREV, | ||
16 | MOVE_FIRST | ||
17 | }; | ||
18 | |||
7 | struct sway_container; | 19 | struct sway_container; |
8 | 20 | ||
9 | struct sway_root { | 21 | struct sway_root { |
@@ -25,5 +37,7 @@ struct sway_container *remove_child(struct sway_container *child); | |||
25 | enum swayc_layouts default_layout(struct sway_container *output); | 37 | enum swayc_layouts default_layout(struct sway_container *output); |
26 | void sort_workspaces(struct sway_container *output); | 38 | void sort_workspaces(struct sway_container *output); |
27 | void arrange_windows(struct sway_container *container, double width, double height); | 39 | void arrange_windows(struct sway_container *container, double width, double height); |
40 | swayc_t *get_swayc_in_direction(swayc_t *container, | ||
41 | struct sway_seat *seat, enum movement_direction dir); | ||
28 | 42 | ||
29 | #endif | 43 | #endif |