summaryrefslogtreecommitdiffstats
path: root/include/sway
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-14 14:30:27 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-14 14:30:27 -0500
commit946d9459c57fc38b2536d40a45b7d4c9186b6734 (patch)
tree0fe98d3382dccb56a09f90ddeb5938d880234d1c /include/sway
parentremove old focus member (diff)
downloadsway-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.h3
-rw-r--r--include/sway/layout.h14
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
61swayc_t *sway_seat_get_focus_inactive(struct sway_seat *seat, swayc_t *container); 61swayc_t *sway_seat_get_focus_inactive(struct sway_seat *seat, swayc_t *container);
62 62
63swayc_t *sway_seat_get_focus_by_type(struct sway_seat *seat,
64 enum swayc_types type);
65
63void sway_seat_set_config(struct sway_seat *seat, struct seat_config *seat_config); 66void 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
7enum 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
7struct sway_container; 19struct sway_container;
8 20
9struct sway_root { 21struct sway_root {
@@ -25,5 +37,7 @@ struct sway_container *remove_child(struct sway_container *child);
25enum swayc_layouts default_layout(struct sway_container *output); 37enum swayc_layouts default_layout(struct sway_container *output);
26void sort_workspaces(struct sway_container *output); 38void sort_workspaces(struct sway_container *output);
27void arrange_windows(struct sway_container *container, double width, double height); 39void arrange_windows(struct sway_container *container, double width, double height);
40swayc_t *get_swayc_in_direction(swayc_t *container,
41 struct sway_seat *seat, enum movement_direction dir);
28 42
29#endif 43#endif