view: expose view_get_adjacent_output

This commit is contained in:
Jens Peters 2024-01-21 23:40:25 +01:00 committed by Johan Malm
parent 099929cf46
commit 982df84407
2 changed files with 2 additions and 1 deletions

View file

@ -481,6 +481,7 @@ void view_on_output_destroy(struct view *view);
void view_connect_map(struct view *view, struct wlr_surface *surface); void view_connect_map(struct view *view, struct wlr_surface *surface);
void view_destroy(struct view *view); void view_destroy(struct view *view);
struct output *view_get_adjacent_output(struct view *view, enum view_edge edge);
enum view_axis view_axis_parse(const char *direction); enum view_axis view_axis_parse(const char *direction);
enum view_edge view_edge_parse(const char *direction); enum view_edge view_edge_parse(const char *direction);

View file

@ -1465,7 +1465,7 @@ view_on_output_destroy(struct view *view)
view->output = NULL; view->output = NULL;
} }
static struct output * struct output *
view_get_adjacent_output(struct view *view, enum view_edge edge) view_get_adjacent_output(struct view *view, enum view_edge edge)
{ {
assert(view); assert(view);