diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-24 01:11:21 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-24 01:11:21 -0700 |
commit | dbad30a409b83d2e327e5eb2a53b46f12e462258 (patch) | |
tree | beedc915a86c4a1109fd0cf4de7961642ccd8354 /include | |
parent | b054ac9d4973c8803ff8981eb1f1a754434efe4d (diff) |
add limit to swayc_in_direction
Diffstat (limited to 'include')
-rw-r--r-- | include/container.h | 5 | ||||
-rw-r--r-- | include/layout.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h index 2ced248b..aadba5de 100644 --- a/include/container.h +++ b/include/container.h @@ -84,6 +84,11 @@ swayc_t *destroy_view(swayc_t *view); swayc_t *swayc_by_test(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types); swayc_t *swayc_parent_by_layout(swayc_t *container, enum swayc_layouts); +// Follow focused until type/layout +swayc_t *swayc_focus_by_type(swayc_t *container, enum swayc_types); +swayc_t *swayc_focus_by_layout(swayc_t *container, enum swayc_layouts); + + swayc_t *swayc_by_handle(wlc_handle handle); swayc_t *swayc_active_output(void); swayc_t *swayc_active_workspace(void); diff --git a/include/layout.h b/include/layout.h index 8f269607..11bf1a28 100644 --- a/include/layout.h +++ b/include/layout.h @@ -29,6 +29,7 @@ void arrange_windows(swayc_t *container, double width, double height); swayc_t *get_focused_container(swayc_t *parent); swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir); +swayc_t *get_swayc_in_direction_under(swayc_t *container, enum movement_direction dir, swayc_t *limit); void recursive_resize(swayc_t *container, double amount, enum wlc_resize_edge edge); |